Package org.apache.jackrabbit.core.security

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


        if (this.callbackHandler == null) {
            throw new LoginException("no CallbackHandler available");
        }

        Callback[] callbacks = new Callback[]{
            new CredentialsCallback()
        };
       
        this.principals.clear();
        try {
            //Calls setCredentials() on the callbacks
            this.callbackHandler.handle(callbacks);
            CredentialsCallback ccb = (CredentialsCallback) callbacks[0];
            Credentials creds = ccb.getCredentials();
             
            if (creds != null && creds instanceof SimpleCredentials) {
               
                final SimpleCredentials sc = (SimpleCredentials) creds;
               
View Full Code Here


    {
      throw new LoginException("no CallbackHandler available");
    }

    Callback[] callbacks = new Callback[]
    { new CredentialsCallback() };

    boolean authenticated = false;
    principals.clear();
    try
    {
      callbackHandler.handle(callbacks);
      // credentials
      CredentialsCallback ccb = (CredentialsCallback) callbacks[0];
      Credentials creds = ccb.getCredentials();
      if (creds != null)
      {
        if (creds instanceof SimpleCredentials)
        {
          SimpleCredentials sc = (SimpleCredentials) creds;
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.security.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.