Class ServerLoginCallbackHandler
- java.lang.Object
-
- com.sun.enterprise.security.auth.login.common.ServerLoginCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
public class ServerLoginCallbackHandler extends Object implements CallbackHandler
This is the default callback handler provided by the application client container.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 Summary
Constructors Constructor Description ServerLoginCallbackHandler()
ServerLoginCallbackHandler(String username, char[] password)
ServerLoginCallbackHandler(String username, char[] password, String moduleID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
setUsername
public void setUsername(String user)
-
setPassword
public void setPassword(char[] pass)
-
setModuleID
public void setModuleID(String moduleID)
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
This is the callback method called when authentication data is required. It either pops up a dialog box to request authentication data or use text input.- Specified by:
handle
in interfaceCallbackHandler
- Parameters:
the
- callback object instances supported by the login module.- Throws:
IOException
UnsupportedCallbackException
-
-