Package org.apache.ace.authentication.processor.clientcert

Examples of org.apache.ace.authentication.processor.clientcert.ClientCertAuthenticationProcessor.updated()


        Properties props = new Properties();
        props.put(PROPERTY_USERNAME_LOOKUPKEY, lookupKey);
        props.put(PROPERTY_USERNAME_MATCH_POLICY, matchPolicy);
        props.put(PROPERTY_VERIFY_CERT_VALIDITY, "true");
        processor.updated(props);

        X509Certificate[] certChain = createValidCertificateChainWithDN("cn=Alice,dc=acme,dc=corp", "cn=Fido,ou=dev,dc=acme,dc=corp", "cn=Bob,ou=dev,dc=acme,dc=corp");

        when(m_servletRequest.getAttribute(ATTRIBUTE_X509_CERTIFICATE)).thenReturn(certChain);
View Full Code Here


        props.put(PROPERTY_USERNAME_MATCH_POLICY, matchPolicy);
        props.put(PROPERTY_VERIFY_CERT_VALIDITY, "true");

        ClientCertAuthenticationProcessor processor = createAuthorizationProcessor();

        processor.updated(props);

        X509Certificate[] certificateChain = createValidCertificateChain("alice");

        // Test whether we can use the new properties...
        when(m_servletRequest.getAttribute(ATTRIBUTE_X509_CERTIFICATE)).thenReturn(certificateChain);
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.