Examples of AuthenticationInterceptor


Examples of org.apache.directory.server.core.authn.AuthenticationInterceptor

        policyConfig.setPwdGraceAuthNLimit( 5 );
        policyConfig.setPwdCheckQuality( 2 ); // DO NOT allow the password if its quality can't be checked

        PpolicyConfigContainer policyContainer = new PpolicyConfigContainer();
        policyContainer.setDefaultPolicy( policyConfig );
        AuthenticationInterceptor authenticationInterceptor = (AuthenticationInterceptor)getService().getInterceptor( AuthenticationInterceptor.class.getName() );
        authenticationInterceptor.setPwdPolicies( policyContainer );
       
        AuthenticationInterceptor authInterceptor = ( AuthenticationInterceptor ) getService()
        .getInterceptor( AuthenticationInterceptor.class.getName() );
       
        authInterceptor.loadPwdPolicyStateAtributeTypes();
    }
View Full Code Here

Examples of org.apache.directory.server.core.authn.AuthenticationInterceptor

        if ( journal != null )
        {
            directoryService.setJournal( journal );
        }
       
        AuthenticationInterceptor authenticationInterceptor = (AuthenticationInterceptor)directoryService.getInterceptor( AuthenticationInterceptor.class.getName() );

        // MaxPDUSize
        directoryService.setMaxPDUSize( directoryServiceBean.getDsMaxPDUSize() );
       
        // PasswordHidden
View Full Code Here

Examples of org.apache.directory.server.core.authn.AuthenticationInterceptor

            interceptorList.add( ( Interceptor ) interceptorClass.newInstance() );
        }

        if ( dsBuilder.authenticators().length != 0 )
        {
            AuthenticationInterceptor authenticationInterceptor = null;
           
            for ( Interceptor interceptor : interceptorList )
            {
                if ( interceptor instanceof AuthenticationInterceptor )
                {
View Full Code Here

Examples of org.apache.directory.server.core.authn.AuthenticationInterceptor

        policyConfig.setPwdGraceAuthNLimit( 5 );
        policyConfig.setPwdCheckQuality( 2 ); // DO NOT allow the password if its quality can't be checked

        PpolicyConfigContainer policyContainer = new PpolicyConfigContainer();
        policyContainer.setDefaultPolicy( policyConfig );
        AuthenticationInterceptor authenticationInterceptor = (AuthenticationInterceptor)getService().getInterceptor( InterceptorEnum.AUTHENTICATION_INTERCEPTOR.getName() );
        authenticationInterceptor.setPwdPolicies( policyContainer );
       
        AuthenticationInterceptor authInterceptor = ( AuthenticationInterceptor ) getService()
            .getInterceptor( InterceptorEnum.AUTHENTICATION_INTERCEPTOR.getName() );
       
        authInterceptor.loadPwdPolicyStateAtributeTypes();
    }
View Full Code Here

Examples of org.apache.directory.server.core.authn.AuthenticationInterceptor

        policyConfig.setPwdGraceAuthNLimit( 5 );
        policyConfig.setPwdCheckQuality( 2 ); // DO NOT allow the password if its quality can't be checked

        PpolicyConfigContainer policyContainer = new PpolicyConfigContainer();
        policyContainer.setDefaultPolicy( policyConfig );
        AuthenticationInterceptor authenticationInterceptor = (AuthenticationInterceptor)getService().getInterceptor( InterceptorEnum.AUTHENTICATION_INTERCEPTOR.getName() );
        authenticationInterceptor.setPwdPolicies( policyContainer );
       
        AuthenticationInterceptor authInterceptor = ( AuthenticationInterceptor ) getService()
            .getInterceptor( InterceptorEnum.AUTHENTICATION_INTERCEPTOR.getName() );
       
        authInterceptor.loadPwdPolicyStateAtributeTypes();
    }
View Full Code Here

Examples of org.apache.directory.server.core.authn.AuthenticationInterceptor

        try {
            logger.logInfo("Starting ApacheDS server");
            service = new DefaultDirectoryService();
            final List<Interceptor> list = new ArrayList<Interceptor>();
            list.add(new NormalizationInterceptor());
            list.add(new AuthenticationInterceptor());
            list.add(new ReferralInterceptor());
            list.add(new ExceptionInterceptor());
            list.add(new OperationalAttributeInterceptor());
            list.add(new SubentryInterceptor());
            final JdbmPartition partition = new JdbmPartition();
View Full Code Here

Examples of org.apache.directory.server.core.authn.AuthenticationInterceptor

    {
        // Set default interceptor chains
        List<Interceptor> list = new ArrayList<Interceptor>();

        list.add( new NormalizationInterceptor() );
        list.add( new AuthenticationInterceptor() );
        list.add( new ReferralInterceptor() );
        list.add( new AciAuthorizationInterceptor() );
        list.add( new DefaultAuthorizationInterceptor() );
        list.add( new AdministrativePointInterceptor() );
        list.add( new ExceptionInterceptor() );
View Full Code Here

Examples of org.apache.directory.server.core.authn.AuthenticationInterceptor

    /**
     * {@inheritDoc}
     */
    public boolean isPwdPolicyEnabled()
    {
        AuthenticationInterceptor authenticationInterceptor = (AuthenticationInterceptor)getInterceptor( AuthenticationInterceptor.class.getName() );
       
        if ( authenticationInterceptor == null )
        {
            return false;
        }

        PpolicyConfigContainer pwdPolicyContainer = authenticationInterceptor.getPwdPolicyContainer();
       
        return ( ( pwdPolicyContainer != null )
                && ( ( pwdPolicyContainer.getDefaultPolicy() != null )
                || ( pwdPolicyContainer.hasCustomConfigs() ) ) );
    }
View Full Code Here

Examples of org.bitbucket.andyrobr.clever.http.AuthenticationInterceptor

                new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM, AuthPolicy.BASIC),
                new UsernamePasswordCredentials(key, "")
        );

        // Add a request interceptor so we don't have to set the credentials on every request.
        client.addRequestInterceptor(new AuthenticationInterceptor(), 0);

        return new Clever(client);
    }
View Full Code Here

Examples of org.jboss.aspects.security.AuthenticationInterceptor

   {
      super(manager);
      this.container = (EJBContainer)container;
      this.realmMapping = (RealmMapping)manager;
      // TODO: can be optimized to only instantiate when securityDomain has an unauthenticatedPrincipal
      this.unauthenticatedAuthenticationInterceptor = new AuthenticationInterceptor(null)
      {
         @Override
         protected void authenticate(Invocation invocation) throws Exception
         {
            super.authenticate(invocation);
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.