Class JwtClaimsSet


  • public class JwtClaimsSet
    extends Object
    JSON Web Token Claim Set.
    • Constructor Detail

      • JwtClaimsSet

        public JwtClaimsSet​(String token)
        Create a JWT claim set from a token string.
        Parameters:
        token - token string (must be non-null and not empty)
    • Method Detail

      • getSignature

        public String getSignature()
      • getExpirationTime

        public Date getExpirationTime()
        Return the JWT expiration time
        Returns:
        expiration time
      • getIssueTime

        public Date getIssueTime()
        Return the JWT issued time
        Returns:
        issued time
      • getStringClaim

        public String getStringClaim​(String name)
                              throws ParseException
        Return the string claim for the key.
        Parameters:
        name - key for the claim
        Returns:
        string claim
        Throws:
        ParseException - if not a string
      • getClaim

        public Object getClaim​(String name)
        Return the claim for the key.
        Parameters:
        name - key for the claim
        Returns:
        string claim