com.ibm.websphere.wssecurity.callbackhandler
Class UNTGenerateCallbackHandler
- java.lang.Object
com.ibm.websphere.wssecurity.callbackhandler.UNTGenerateCallbackHandler
All implemented interfaces:
java.io.Serializable, javax.security.auth.callback.CallbackHandler
- public class UNTGenerateCallbackHandler
- extends java.lang.Object
- implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
See Also:
Constructor Summary
| Constructor and Description |
|---|
UNTGenerateCallbackHandler(boolean useIdentityAssertion)
Class constructor for the intermediary
|
UNTGenerateCallbackHandler(boolean useRunAsSubject,boolean sendRealm)
Class constructor.
|
UNTGenerateCallbackHandler(boolean useRunAsSubject,boolean sendRealm,boolean trustedRealm)
Class constructor.
|
UNTGenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.
|
UNTGenerateCallbackHandler(java.lang.String userid,java.lang.String password)
Class constructor.
|
UNTGenerateCallbackHandler(java.lang.String userid,java.lang.String password,boolean setNonce,boolean setCreatedTimestamp)
Class constructor.
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
handle(javax.security.auth.callback.Callback[] callbacks)
Sets necessary information to
NameCallback,
PasswordCallback, and UNTGenerateCallback objects.
|
|
isTrue(java.lang.String flag)
Returns the flag is true or not
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
UNTGenerateCallbackHandler
- public UNTGenerateCallbackHandler( java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.
Parameters:
properties - map including key-value pairs UNTGenerateCallbackHandler
- public UNTGenerateCallbackHandler( java.lang.String userid,
- java.lang.String password)
Class constructor.
Parameters:
userid - user id password - password UNTGenerateCallbackHandler
- public UNTGenerateCallbackHandler( java.lang.String userid,
- java.lang.String password,
- boolean setNonce,
- boolean setCreatedTimestamp)
Class constructor.
Parameters:
userid - user name password - password setNonce - true if it requires nonce setCreatedTimestamp - true if it requires timestamp UNTGenerateCallbackHandler
- public UNTGenerateCallbackHandler( boolean useRunAsSubject,
- boolean sendRealm)
Class constructor.
Parameters:
useRunAsSubject - true if run as subject sendRealm - true if it send realm UNTGenerateCallbackHandler
- public UNTGenerateCallbackHandler( boolean useRunAsSubject,
- boolean sendRealm,
- boolean trustedRealm)
Class constructor.
Parameters:
useRunAsSubject - true if run as subject sendRealm - true if it send realm trustedRealm - true to leverage trusted realm feature UNTGenerateCallbackHandler
- public UNTGenerateCallbackHandler( boolean useIdentityAssertion)
Class constructor for the intermediary
Parameters:
useIdentityAssertion - id assertion Method Detail
isTrue
- public static boolean isTrue(java.lang.String flag)
Returns the flag is true or not
Parameters:
flag - a string represents boolean value Returns:
true if the string equals to either "yes", "on", "true", or "1";
otherwise false. String comparison is case insensitive.
handle
- public void handle(javax.security.auth.callback.Callback[] callbacks)
- throws java.io.IOException
- javax.security.auth.callback.UnsupportedCallbackException
Sets necessary information to
NameCallback,
PasswordCallback, and UNTGenerateCallback objects.
Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - array of Callback objects 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 the Callbacks specified in the callbacks parameter. See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])