Class TokenContext


  • public class TokenContext
    extends Object
    This class contains context data used for generation of a token.
    • Constructor Detail

      • TokenContext

        public TokenContext()
    • Method Detail

      • getSubjectAttributes

        public Map<String,​AttributeValue> getSubjectAttributes()
        Retrieve the map of attributes that uniquely identify the context of a token. The keys of this map should be the same as the set of attributes defined as this token generator attribute contract in its TokenPluginDescriptor (DescribablePlugin.getPluginDescriptor()).
        Returns:
        the map of attributes
      • setSubjectAttributes

        public void setSubjectAttributes​(Map<String,​AttributeValue> subjectAttributes)
        Set the map of attributes that uniquely identify the context of a token.
        Parameters:
        subjectAttributes -
      • getSecretKey

        public Key getSecretKey()
        Retrieve the secret key associated with the security token.
        Returns:
        the secret key
      • setSecretKey

        public void setSecretKey​(Key secretKey)
        Set the secret key associated with the security token.
        Parameters:
        secretKey -
      • isUseHolderOfKey

        public boolean isUseHolderOfKey()
        Indicate whether holder-of-key confirmation method is used.
      • setUseHolderOfKey

        public void setUseHolderOfKey​(boolean use)
        Set by token generator to indicate whether holder-of-key confirmation method is used.
      • getInParameters

        public Map<String,​Object> getInParameters()
        A map that contains a set of input parameters which will be available during token generation.
        Returns:
        Since:
        10.0
      • setInParameters

        public void setInParameters​(Map<String,​Object> inParameters)
        Setting a map that contains a set of input parameters which will be available during token generation.
        Parameters:
        inParameters -
        Since:
        10.0