public class AdminCallbackHandler extends Object implements CallbackHandler
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.
Modifier and Type | Field and Description |
---|---|
static String |
COOKIE_REST_TOKEN |
static String |
HEADER_X_AUTH_TOKEN |
Constructor and Description |
---|
AdminCallbackHandler(org.glassfish.hk2.api.ServiceLocator serviceLocator,
org.glassfish.grizzly.http.server.Request request,
String alternateHostName,
String defaultAdminUsername,
LocalPassword localPassword) |
public static final String COOKIE_REST_TOKEN
public static final String HEADER_X_AUTH_TOKEN
public AdminCallbackHandler(org.glassfish.hk2.api.ServiceLocator serviceLocator, org.glassfish.grizzly.http.server.Request request, String alternateHostName, String defaultAdminUsername, LocalPassword localPassword) throws IOException
IOException
public String getRemoteHost()
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
IOException
UnsupportedCallbackException
Copyright © 2019. All rights reserved.