Examples of PasswordPolicyResponse


Examples of org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponse

    }


    static PasswordWarning newWarning( PasswordPolicy policy )
    {
        PasswordPolicyResponse response = policy.getResponse();
        if ( response != null )
        {
            PasswordWarningImpl policyWarning = new PasswordWarningImpl();
            policyWarning.timeBeforeExpiration = response.getTimeBeforeExpiration();
            policyWarning.graceAuthNsRemaining = response.getGraceAuthNRemaining();
            policyWarning.changeAfterReset = response.getPasswordPolicyError() ==
                PasswordPolicyErrorEnum.CHANGE_AFTER_RESET;

            if ( policyWarning.timeBeforeExpiration >= 0 || policyWarning.graceAuthNsRemaining >= 0
                || policyWarning.changeAfterReset )
            {
View Full Code Here

Examples of org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyResponse

    }


    public static PasswordWarning newWarning( PasswordPolicy policy )
    {
        PasswordPolicyResponse response = policy.getResponse();
        if ( response != null )
        {
            PasswordWarningImpl policyWarning = new PasswordWarningImpl();
            policyWarning.timeBeforeExpiration = response.getTimeBeforeExpiration();
            policyWarning.graceAuthNsRemaining = response.getGraceAuthNRemaining();
            policyWarning.changeAfterReset = response.getPasswordPolicyError() ==
                PasswordPolicyErrorEnum.CHANGE_AFTER_RESET;

            if ( policyWarning.timeBeforeExpiration >= 0 || policyWarning.graceAuthNsRemaining >= 0
                || policyWarning.changeAfterReset )
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.