Package org.apache.directory.server.config.beans

Examples of org.apache.directory.server.config.beans.AuthenticationInterceptorBean


     *
     * @param directoryServiceBean the directory service bean
     */
    private static void addPasswordPolicyBean( DirectoryServiceBean directoryServiceBean )
    {
        AuthenticationInterceptorBean authenticationInterceptor = getAuthenticationInterceptorBean( directoryServiceBean );

        if ( authenticationInterceptor != null )
        {
            // Creating the password policy
            PasswordPolicyBean passwordPolicy = new PasswordPolicyBean();

            // Configuring the password policy
            passwordPolicy.setPwdId( PASSWORD_POLICY_ID_DEFAULT );
            passwordPolicy.setPwdMaxAge( 0 );
            passwordPolicy.setPwdFailureCountInterval( 30 );
            passwordPolicy.setPwdAttribute( "userPassword" );
            passwordPolicy.setPwdMaxFailure( 5 );
            passwordPolicy.setPwdLockout( true );
            passwordPolicy.setPwdMustChange( false );
            passwordPolicy.setPwdLockoutDuration( 0 );
            passwordPolicy.setPwdMinLength( 5 );
            passwordPolicy.setPwdInHistory( 5 );
            passwordPolicy.setPwdExpireWarning( 600 );
            passwordPolicy.setPwdMinAge( 0 );
            passwordPolicy.setPwdAllowUserChange( true );
            passwordPolicy.setPwdGraceAuthNLimit( 5 );
            passwordPolicy.setPwdCheckQuality( 1 );
            passwordPolicy.setPwdMaxLength( 0 );
            passwordPolicy.setPwdGraceExpire( 0 );
            passwordPolicy.setPwdMinDelay( 0 );
            passwordPolicy.setPwdMaxDelay( 0 );
            passwordPolicy.setPwdMaxIdle( 0 );

            // Adding the password policy to the authentication interceptor
            authenticationInterceptor.addPasswordPolicies( passwordPolicy );
        }
    }
View Full Code Here


    /**
     * Initializes the page with the Editor input.
     */
    private void initFromInput()
    {
        AuthenticationInterceptorBean authenticationInterceptor = getAuthenticationInterceptor();

        if ( authenticationInterceptor != null )
        {
            viewer.setInput( authenticationInterceptor.getPasswordPolicies() );
        }
        else
        {
            viewer.setInput( null );
        }
View Full Code Here

     *
     * @param directoryServiceBean the directory service bean
     */
    private static void addPasswordPolicyBean( DirectoryServiceBean directoryServiceBean )
    {
        AuthenticationInterceptorBean authenticationInterceptor = getAuthenticationInterceptorBean( directoryServiceBean );

        if ( authenticationInterceptor != null )
        {
            // Creating the password policy
            PasswordPolicyBean passwordPolicy = new PasswordPolicyBean();

            // Configuring the password policy
            passwordPolicy.setPwdId( PASSWORD_POLICY_ID_DEFAULT );
            passwordPolicy.setPwdMaxAge( 0 );
            passwordPolicy.setPwdFailureCountInterval( 30 );
            passwordPolicy.setPwdAttribute( "userPassword" );
            passwordPolicy.setPwdMaxFailure( 5 );
            passwordPolicy.setPwdLockout( true );
            passwordPolicy.setPwdMustChange( false );
            passwordPolicy.setPwdLockoutDuration( 0 );
            passwordPolicy.setPwdMinLength( 5 );
            passwordPolicy.setPwdInHistory( 5 );
            passwordPolicy.setPwdExpireWarning( 600 );
            passwordPolicy.setPwdMinAge( 0 );
            passwordPolicy.setPwdAllowUserChange( true );
            passwordPolicy.setPwdGraceAuthNLimit( 5 );
            passwordPolicy.setPwdCheckQuality( 1 );
            passwordPolicy.setPwdMaxLength( 0 );
            passwordPolicy.setPwdGraceExpire( 0 );
            passwordPolicy.setPwdMinDelay( 0 );
            passwordPolicy.setPwdMaxDelay( 0 );
            passwordPolicy.setPwdMaxIdle( 0 );
            passwordPolicy
                .setPwdValidator( "org.apache.directory.server.core.api.authn.ppolicy.DefaultPasswordValidator" );

            // Adding the password policy to the authentication interceptor
            authenticationInterceptor.addPasswordPolicies( passwordPolicy );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.config.beans.AuthenticationInterceptorBean

Copyright © 2018 www.massapicom. 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.