com.ibm.websphere.wssecurity.callbackhandler

Class UNTGenerateCallbackHandler

  1. java.lang.Object
  2. extended bycom.ibm.websphere.wssecurity.callbackhandler.UNTGenerateCallbackHandler
All implemented interfaces:
java.io.Serializable, javax.security.auth.callback.CallbackHandler

  1. public class UNTGenerateCallbackHandler
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
This is a callback for user name token in generator side. This instance is used to set into WSSGenerationContext object to generate a user name token.
See Also:
UsernameToken, UNTGenerateCallback, Serialized Form

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
  1. void
handle(javax.security.auth.callback.Callback[] callbacks)
Sets necessary information to NameCallback, PasswordCallback, and UNTGenerateCallback objects.
  1. static
  2. boolean
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

  1. public UNTGenerateCallbackHandler( java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.
Parameters:
properties - map including key-value pairs

UNTGenerateCallbackHandler

  1. public UNTGenerateCallbackHandler( java.lang.String userid,
  2. java.lang.String password)
Class constructor.
Parameters:
userid - user id
password - password

UNTGenerateCallbackHandler

  1. public UNTGenerateCallbackHandler( java.lang.String userid,
  2. java.lang.String password,
  3. boolean setNonce,
  4. boolean setCreatedTimestamp)
Class constructor.
Parameters:
userid - user name
password - password
setNonce - true if it requires nonce
setCreatedTimestamp - true if it requires timestamp

UNTGenerateCallbackHandler

  1. public UNTGenerateCallbackHandler( boolean useRunAsSubject,
  2. boolean sendRealm)
Class constructor.
Parameters:
useRunAsSubject - true if run as subject
sendRealm - true if it send realm

UNTGenerateCallbackHandler

  1. public UNTGenerateCallbackHandler( boolean useRunAsSubject,
  2. boolean sendRealm,
  3. 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

  1. public UNTGenerateCallbackHandler( boolean useIdentityAssertion)
Class constructor for the intermediary
Parameters:
useIdentityAssertion - id assertion

Method Detail

isTrue

  1. 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

  1. public void handle(javax.security.auth.callback.Callback[] callbacks)
  2. throws java.io.IOException
  3. 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[])