public class ServerLoginCallbackHandler extends Object implements CallbackHandler
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 © 2018. All rights reserved.