com.ibm.commerce.foundation.common.security.auth.callback

Class IdentityTokenCallback

  • java.lang.Object
    • com.ibm.commerce.foundation.common.security.auth.callback.IdentityTokenCallback
  • All Implemented Interfaces:
    javax.security.auth.callback.Callback


    public class IdentityTokenCallback
    extends java.lang.Object
    implements javax.security.auth.callback.Callback
    The callback object for the identity token. This callback uses the commerce identity token as a form of authorization.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IdentityTokenCallback(java.lang.String prompt)
      Creates an instance of the identity token callback.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      This method returns whether the specified object is equal to the current object.
      java.lang.String getIdentityId()
      This method returns the identity identifier of the identity token.
      java.lang.String getPrompt()
      This method returns the prompt.
      java.lang.String getSessionId()
      This method returns the session Id associated with the identity token.
      java.lang.String getSignature()
      This method returns the signature associated with the identity token.
      java.lang.Long getTimestamp()
      This method returns the creation time associated with the identity token.
      int hashCode()
      This method returns the hash code of the current object.
      void setIdentityId(java.lang.String identityId)
      This method sets the identity identifier of the identity token.
      void setSessionId(java.lang.String sessionId)
      This method sets the session Id of the identity token.
      void setSignature(java.lang.String signature)
      This method sets the signature of the identity token.
      void setTimestamp(java.lang.Long timestamp)
      This method sets the creation time of the identity token.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdentityTokenCallback

        public IdentityTokenCallback(java.lang.String prompt)
        Creates an instance of the identity token callback.
        Parameters:
        prompt - The prompt when asking to specify the information.
    • Method Detail

      • getIdentityId

        public java.lang.String getIdentityId()
        This method returns the identity identifier of the identity token.
        Returns:
        The identity identifier of the identity token.
      • setIdentityId

        public void setIdentityId(java.lang.String identityId)
        This method sets the identity identifier of the identity token.
        Parameters:
        identityId - The identity identifier.
      • getPrompt

        public java.lang.String getPrompt()
        This method returns the prompt.
        Returns:
        The prompt to display when asking to specify the information.
      • getSignature

        public java.lang.String getSignature()
        This method returns the signature associated with the identity token.
        Returns:
        The signature that matches the identity identifier.
      • setSignature

        public void setSignature(java.lang.String signature)
        This method sets the signature of the identity token.
        Parameters:
        signature - The signature associated with the identity identifier.
      • getTimestamp

        public java.lang.Long getTimestamp()
        This method returns the creation time associated with the identity token.
        Returns:
        The creation time that matches the identity identifier.
      • setTimestamp

        public void setTimestamp(java.lang.Long timestamp)
        This method sets the creation time of the identity token.
        Parameters:
        timestamp - The creation time associated with the identity identifier.
      • getSessionId

        public java.lang.String getSessionId()
        This method returns the session Id associated with the identity token.
        Returns:
        The session Id that matches the identity identifier.
      • setSessionId

        public void setSessionId(java.lang.String sessionId)
        This method sets the session Id of the identity token.
        Parameters:
        sessionId - The session Id associated with the identity identifier.
      • equals

        public boolean equals(java.lang.Object obj)
        This method returns whether the specified object is equal to the current object. The object is equal only if the specified class is an instance of IdentityTokenCallback and the identity identifier and signature equals.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The object to compare.
        Returns:
        Whether the objects equals the instance.
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        This method returns the hash code of the current object. The hash code of this object is the addition of the hash code of the identity identifer and signature.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code of the object.
        See Also:
        Object.hashCode()