com.ibm.wsspi.wssecurity.auth.callback
Class NonPromptCallbackHandler
- java.lang.Object
-
- com.ibm.wsspi.wssecurity.auth.callback.NonPromptCallbackHandler
-
- All Implemented Interfaces:
- javax.security.auth.callback.CallbackHandler
public class NonPromptCallbackHandler extends java.lang.Object implements javax.security.auth.callback.CallbackHandlerThe
NonPromptCallbackHandlergathers the authentication data from the constructor and passes it to the login module. These data includes principal name and password.Supported
Callbacks:javax.security.auth.callback.NameCallbackjavax.security.auth.callback.PasswordCallback
- Since:
- 1.0
- Version:
- 1.0
- See Also:
NameCallback,PasswordCallback
-
-
Constructor Summary
Constructors Constructor and Description NonPromptCallbackHandler()Constructor with no parameters.NonPromptCallbackHandler(java.lang.String userid, char[] password, java.util.Map properties)Constructs aNonPromptCallbackHandlerusinguserid,passwordandpropertiesparameters.
-
Method Summary
Methods Modifier and Type Method and Description voidhandle(javax.security.auth.callback.Callback[] callbacks)This implementation ofNonPromptCallbackHandlercollects the username and password data supplied via the constructor and pushes them to the login module.
-
-
-
Constructor Detail
-
NonPromptCallbackHandler
public NonPromptCallbackHandler()
Constructor with no parameters.
-
NonPromptCallbackHandler
public NonPromptCallbackHandler(java.lang.String userid, char[] password, java.util.Map properties)Constructs aNonPromptCallbackHandlerusinguserid,passwordandpropertiesparameters. The parameters should include only stateless information.- Parameters:
userid- The user name.password- The user password.properties- A set of name-value pairs.
-
-
Method Detail
-
handle
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackExceptionThis implementation ofNonPromptCallbackHandlercollects the username and password data supplied via the constructor and pushes them to the login module. If the realm name can not determined at the time of login prompt, a "<default>" realm name will be displayed.- Specified by:
handlein interfacejavax.security.auth.callback.CallbackHandler- Parameters:
callbacks- An array ofCallbackobjects provided by the underlying security service which contains the information requested to be retrieved or displayed.- Throws:
java.io.IOException- If an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException- If the implementation of this method does not support one or more of theCallbacks specified in the callbacks parameter.
-
-