Package org.apache.jackrabbit.core.security.authentication

Examples of org.apache.jackrabbit.core.security.authentication.CredentialsCallback


     * @throws UnsupportedCallbackException
     * @throws IOException
     */
    private Credentials getCredentials() throws IOException,
            UnsupportedCallbackException {
        CredentialsCallback credentialsCallback = new CredentialsCallback();
        callbackHandler.handle(new Callback[] { credentialsCallback });
        return credentialsCallback.getCredentials();
    }
View Full Code Here


     */
    @Override
    protected Credentials getCredentials() {
        Credentials creds = super.getCredentials();
        if ( creds == null ) {
            CredentialsCallback callback = new CredentialsCallback();
            try {
                pluggableCallackHander.handle(new Callback[]{callback});
                Credentials callbackCreds = callback.getCredentials();
                if ( callbackCreds instanceof TrustedCredentials ) {
                    creds = callbackCreds;
                }
            } catch (UnsupportedCallbackException e) {
                log.warn("Credentials-Callback not supported try Name-Callback");
View Full Code Here

    private Credentials getCredentials() throws LoginException {
        if (callbackHandler == null) {
            throw new LoginException("Null callback handler");
        }

        CredentialsCallback ccb = new CredentialsCallback();
        try {
            callbackHandler.handle(new Callback[]{ccb});
        } catch (Exception e) {
            throw new LoginException("Failed to retrieve login credentials");
        }
        return ccb.getCredentials();
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.security.authentication.CredentialsCallback

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.