Class SAMLToken


  • public class SAMLToken
    extends Object
    This wrapper class wraps up the various fields of the SAML tokens and contains them in a single class. This allows the SAML use-case of the Core Token Service to be modelled via the TokenAdapter interface. The SAML tokens do not follow any hierarchy and so are of type Object. This doesn't cause a problem for the Core Token Service as the class information is persisted alongside the object.
    Author:
    robert.wapshott@forgerock.com
    • Constructor Detail

      • SAMLToken

        public SAMLToken​(String primaryKey,
                         String secondaryKey,
                         long expiryTime,
                         Object token)
        Create a new instance of the SAMLToken.
        Parameters:
        primaryKey - Primary key used as the Token ID.
        secondaryKey - Secondary key, used for searching over SAML Tokens.
        expiryTime - Expiry time mapped to Token Expiry Time in seconds from epoch.
        token - Object to be stored.
        See Also:
        LDAPDataConversion
    • Method Detail

      • getPrimaryKey

        public String getPrimaryKey()
      • getSecondaryKey

        public String getSecondaryKey()
      • getExpiryTime

        public long getExpiryTime()
        Returns:
        The timestamp in 'epoched seconds'.
      • getToken

        public Object getToken()