javax.security.auth.callback.Callbackpublic class ContextHandlerCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
LoginModule.login() methods.
The underlying security services instantiate and pass a
ContextHandlerCallback to the
invokeCallback
method of a CallbackHandler to retrieve the
ContextHandler related to this security operation.
If no ContextHandler is associated with this operation,
javax.security.auth.callback.UnsupportedCallbackException
is thrown.
CallbackHandler,
UnsupportedCallbackException| Modifier and Type | Method | Description |
|---|---|---|
ContextHandler |
getContextHandler() |
The ContextHandler, if any, that was passed in.
|
void |
setContextHandler(ContextHandler contextHandler) |
Set the value of the ContextHandler attribute.
|
public ContextHandler getContextHandler()
ContextHandlerpublic void setContextHandler(ContextHandler contextHandler)
contextHandler - The non-null ContextHandlergetContextHandler()