Package org.mortbay.jetty.plus.jaas.callback

Examples of org.mortbay.jetty.plus.jaas.callback.AbstractCallbackHandler


            Object credentials,
            Request request)
    {
        try
        {             
            AbstractCallbackHandler callbackHandler = null;
           
            //user has not been authenticated
            if (callbackHandlerClass == null)
            {
                Log.warn("No CallbackHandler configured: using DefaultCallbackHandler");
                callbackHandler = new DefaultCallbackHandler();
            }
            else
            {
                callbackHandler = (AbstractCallbackHandler)Loader.loadClass(JAASUserRealm.class, callbackHandlerClass).getConstructors()[0].newInstance(new Object[0]);
            }
           
            if (callbackHandler instanceof DefaultCallbackHandler)
            {
                ((DefaultCallbackHandler)callbackHandler).setRequest (request);
            }
           
            callbackHandler.setUserName(username);
            callbackHandler.setCredential(credentials);
           
           
            //set up the login context
            LoginContext loginContext = new LoginContext(loginModuleName,
                    callbackHandler);
View Full Code Here


            Object credentials,
            Request request)
    {
        try
        {             
            AbstractCallbackHandler callbackHandler = null;
           
            //user has not been authenticated
            if (callbackHandlerClass == null)
            {
                Log.warn("No CallbackHandler configured: using DefaultCallbackHandler");
                callbackHandler = new DefaultCallbackHandler();
            }
            else
            {
                callbackHandler = (AbstractCallbackHandler)Loader.loadClass(JAASUserRealm.class, callbackHandlerClass).getConstructors()[0].newInstance(new Object[0]);
            }
           
            if (callbackHandler instanceof DefaultCallbackHandler)
            {
                ((DefaultCallbackHandler)callbackHandler).setRequest (request);
            }
           
            callbackHandler.setUserName(username);
            callbackHandler.setCredential(credentials);
           
           
            //set up the login context
            LoginContext loginContext = new LoginContext(loginModuleName,
                    callbackHandler);
View Full Code Here

TOP

Related Classes of org.mortbay.jetty.plus.jaas.callback.AbstractCallbackHandler

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.