Package org.apache.tuscany.sca.policy.security.http

Examples of org.apache.tuscany.sca.policy.security.http.LDAPRealmAuthenticationCallbackHandler


        // Perform user authentication   
        LDAPRealmAuthenticationPolicy authenticationPolicy = authenticationPolicies.get(0);
        if( authenticationPolicy != null) {
            subject = HttpSecurityUtil.getSubject(msg);
            CallbackHandler callbackHandler = new LDAPRealmAuthenticationCallbackHandler(subject);

            /* Uses Geronimo to login */
            LoginContext geronimoLoginContext = ContextManager.login(authenticationPolicy.getRealmConfigurationName(), callbackHandler);

            authenticatedSubject = geronimoLoginContext.getSubject();
View Full Code Here


        // Perform user authentication   
        LDAPRealmAuthenticationPolicy authenticationPolicy = authenticationPolicies.get(0);
        if( authenticationPolicy != null) {
            subject = HttpSecurityUtil.getSubject(msg);
            CallbackHandler callbackHandler = new LDAPRealmAuthenticationCallbackHandler(subject);

            /* Uses Geronimo to login */
            try {
                LoginContext geronimoLoginContext = ContextManager.login(authenticationPolicy.getRealmConfigurationName(), callbackHandler);
               
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.policy.security.http.LDAPRealmAuthenticationCallbackHandler

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.