public class ServerLoginCallbackHandler extends Object implements CallbackHandler
The container tries to use the application specified callback handler (if provided). If there is no callback handler or if the handler cannot be instantiated then this default handler is used.
Constructor and Description |
---|
ServerLoginCallbackHandler() |
ServerLoginCallbackHandler(String username,
char[] password) |
ServerLoginCallbackHandler(String username,
char[] password,
String moduleID) |
Modifier and Type | Method and Description |
---|---|
void |
handle(Callback[] callbacks)
This is the callback method called when authentication data is required.
|
void |
setModuleID(String moduleID) |
void |
setPassword(char[] pass) |
void |
setUsername(String user) |
public ServerLoginCallbackHandler(String username, char[] password)
public ServerLoginCallbackHandler(String username, char[] password, String moduleID)
public ServerLoginCallbackHandler()
public void setUsername(String user)
public void setPassword(char[] pass)
public void setModuleID(String moduleID)
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
the
- callback object instances supported by the login module.IOException
UnsupportedCallbackException
Copyright © 2019. All rights reserved.