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
    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
    • Method Summary

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

        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[])
IBM WebSphere Application ServerTM
Release 8.5