public class SampleCallbackHandlerImpl
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler
A sample callback handler that is given the user name and password to be used for authentication. The purpose of this callback handler is to be used for unit testing purposes for authenticated Webservice request. The instance of the callback handler is given the credential information and this information is found in the SOAP header for authorization purposes.
The purpose of this class is for testing purposes only.
Constructor and Description |
---|
SampleCallbackHandlerImpl(java.lang.String userName, java.lang.String password)
Creates an instance of the sample callback handler to flow authentication information for client service requests.
|
Modifier and Type | Method and Description |
---|---|
void | handle(javax.security.auth.callback.Callback[] callbacks)
This method populates the callback objects specified.
|
public SampleCallbackHandlerImpl(java.lang.String userName, java.lang.String password)
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException