com.ibm.wsspi.wssecurity.auth.callback

Class LTPATokenCallbackHandler

  • java.lang.Object
    • com.ibm.wsspi.wssecurity.auth.callback.LTPATokenCallbackHandler
  • All Implemented Interfaces:
    javax.security.auth.callback.CallbackHandler


    public class LTPATokenCallbackHandler
    extends java.lang.Object
    implements javax.security.auth.callback.CallbackHandler

    The LTPATokenCallbackHandler gathers the authentication data passed in and tries to get an LTPA token from it. It will set the token into the BinaryTokenCallback. This is the only callback supported by this handler. Any other callback will throw an UnsupportedCallbackException.

    Supported Callbacks:

    • com.ibm.wsspi.wssecurity.auth.callback.BinaryTokenCallback

    Since:
    1.0
    Version:
    1.0
    See Also:
    BinaryTokenCallback
    • Constructor Summary

      Constructors 
      Constructor and Description
      LTPATokenCallbackHandler()
      Constructor with no parameters.
      LTPATokenCallbackHandler(java.lang.String userid, char[] password, java.util.Map properties)
      Constructs an LTPATokenCallbackHandler using userid, password and properties parameters.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void handle(javax.security.auth.callback.Callback[] callbacks)
      This implementation of LTPATokenCallbackHandler collect the username and password data passed into the init method of the callback handler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LTPATokenCallbackHandler

        public LTPATokenCallbackHandler()
        Constructor with no parameters.
      • LTPATokenCallbackHandler

        public LTPATokenCallbackHandler(java.lang.String userid,
                                char[] password,
                                java.util.Map properties)
        Constructs an LTPATokenCallbackHandler using userid, password and properties parameters. The parameters should include only stateless information.
        Parameters:
        userid - The user name.
        password - The user password.
        properties - A set of name-value pairs.
    • Method Detail

      • handle

        public void handle(javax.security.auth.callback.Callback[] callbacks)
                    throws java.io.IOException,
                           javax.security.auth.callback.UnsupportedCallbackException

        This implementation of LTPATokenCallbackHandler collect the username and password data passed into the init method of the callback handler. If no username/password is passed in, the handler will try to get the token from the runAs subject. If no token can be retrieved from either of these methods, a null token will be set in the BinaryTokenCallback.

        Specified by:
        handle in interface javax.security.auth.callback.CallbackHandler
        Parameters:
        callbacks - An 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.
IBM WebSphere Application ServerTM
Release 9.0