public class JBossCallbackHandler extends Object implements CallbackHandler, Serializable
Constructor and Description |
---|
JBossCallbackHandler() |
JBossCallbackHandler(Principal principal,
Object credential)
Initialize the UsernamePasswordHandler with the principal
and credentials to use.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Callback[] callbacks)
Handles SecurityAssociationCallback, ObjectCallback, NameCallback and
PasswordCallback types.
|
protected void |
handleCallBack(Callback c)
Handle a
Callback |
void |
setSecurityInfo(Principal principal,
Object credential) |
public void handle(Callback[] callbacks) throws UnsupportedCallbackException, IOException
handle
in interface CallbackHandler
UnsupportedCallbackException
- - thrown if any callback of
type other than SecurityAssociationCallback, ObjectCallback, NameCallback
or PasswordCallback are seen.IOException
getPassword()
protected void handleCallBack(Callback c) throws UnsupportedCallbackException
Callback
c
- callbackUnsupportedCallbackException
- If the callback is not supported by this handlerCopyright © 2019 JBoss by Red Hat. All rights reserved.