Package com.sun.enterprise.admin.util
Class AdminCallbackHandler
java.lang.Object
com.sun.enterprise.admin.util.AdminCallbackHandler
- All Implemented Interfaces:
CallbackHandler
Handles callbacks for admin authentication other than user-provided username and password, such as the local
password, a limited-use token, a ReST token.
Note that some of the information the callback handler stores is really for the use of the admin LoginModule. But because we don't control how the login module is instantiated or initialized - but we do control that for the callback handler - we can put that information here. This callback handler sets the info in the callback, which is then available to the LoginModule.
- Author:
- tjquinn
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAdminCallbackHandler(org.glassfish.hk2.api.ServiceLocator serviceLocator, org.glassfish.grizzly.http.server.Request request, String alternateHostName, String defaultAdminUsername, org.glassfish.internal.api.LocalPassword localPassword) -
Method Summary
-
Field Details
-
COOKIE_REST_TOKEN
- See Also:
-
HEADER_X_AUTH_TOKEN
- See Also:
-
-
Constructor Details
-
AdminCallbackHandler
public AdminCallbackHandler(org.glassfish.hk2.api.ServiceLocator serviceLocator, org.glassfish.grizzly.http.server.Request request, String alternateHostName, String defaultAdminUsername, org.glassfish.internal.api.LocalPassword localPassword) throws IOException - Throws:
IOException
-
-
Method Details
-
getRemoteHost
-
handle
- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException
-