psdi.iface.webservices

Class MaxUNTGenerateCallbackHandler

  • java.lang.Object
    • psdi.iface.webservices.MaxUNTGenerateCallbackHandler
  • All Implemented Interfaces:
    java.io.Serializable, javax.security.auth.callback.CallbackHandler


    public class MaxUNTGenerateCallbackHandler
    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:
    com.ibm.websphere.wssecurity.wssapi.token.UsernameToken, UNTGenerateCallback, Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected char[] getPassword() 
      protected java.lang.String getUser() 
      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

      • MaxUNTGenerateCallbackHandler

        public MaxUNTGenerateCallbackHandler(java.util.Map properties)
        Class constructor.
        Parameters:
        properties - map including key-value pairs
      • MaxUNTGenerateCallbackHandler

        public MaxUNTGenerateCallbackHandler(java.lang.String userid,
                                             java.lang.String password)
        Class constructor.
        Parameters:
        userid - user id
        password - password
      • MaxUNTGenerateCallbackHandler

        public MaxUNTGenerateCallbackHandler(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
      • MaxUNTGenerateCallbackHandler

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

        public MaxUNTGenerateCallbackHandler(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[])
      • getUser

        protected java.lang.String getUser()
      • getPassword

        protected char[] getPassword()