Class SecurityToken

  • Direct Known Subclasses:
    JsonSecurityToken

    public class SecurityToken
    extends Object
    A generic representation of a security token.
    • Constructor Detail

      • SecurityToken

        public SecurityToken​(String token,
                             Date validTo,
                             String audience,
                             String tokenType)
        Constructor.
        Parameters:
        token - the actual token data
        validTo - expiration date/time of the token
        audience - audience of the token
        tokenType - type of the token
    • Method Detail

      • getTokenType

        public String getTokenType()
        Get the type of the token.
        Returns:
        token type
      • getToken

        public String getToken()
        Get the token itself.
        Returns:
        token
      • validTo

        public Date validTo()
        Get the expiration date/time of the token.
        Returns:
        expiration
      • getAudience

        public String getAudience()
        Get the audience of the token.
        Returns:
        audience