Class ClaimsSet


  • public final class ClaimsSet
    extends CustomizableEntity
    Represents the Claims Set as defined in the 6.1 section of the JWT specification.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAudience()
      Returns the first audience of the aud JWT Claims Set parameter.
      java.util.List<java.lang.String> getAudiences()
      Returns the aud JWT Claims Set parameter.
      long getExpirationTime()
      Returns the exp JWT Claims Set parameter.
      long getIssuedAt()
      Returns the iat JWT Claims Set parameter.
      java.lang.String getIssuer()
      Returns the iss JWT Claims Set parameter.
      java.lang.String getJwdId()
      Returns the jti JWT Claims Set parameter.
      java.lang.String getNotBefore()
      Returns the nbf JWT Claims Set parameter.
      java.lang.String getSubject()
      Returns the sub JWT Claims Set parameter.
      java.lang.String getType()
      Returns the typ JWT Claims Set parameter.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getIssuer

        public java.lang.String getIssuer()
        Returns the iss JWT Claims Set parameter.
        Returns:
        the iss JWT Claims Set parameter.
      • getSubject

        public java.lang.String getSubject()
        Returns the sub JWT Claims Set parameter.
        Returns:
        the sub JWT Claims Set parameter.
      • getAudience

        public java.lang.String getAudience()
        Returns the first audience of the aud JWT Claims Set parameter.

        There may be more than one audience listed.

        Returns:
        the aud JWT Claims Set parameter.
        See Also:
        getAudiences()
      • getAudiences

        public java.util.List<java.lang.String> getAudiences()
        Returns the aud JWT Claims Set parameter.
        Returns:
        the aud JWT Claims Set parameter.
      • getExpirationTime

        public long getExpirationTime()
        Returns the exp JWT Claims Set parameter.
        Returns:
        the exp JWT Claims Set parameter.
      • getNotBefore

        public java.lang.String getNotBefore()
        Returns the nbf JWT Claims Set parameter.
        Returns:
        the nbf JWT Claims Set parameter.
      • getIssuedAt

        public long getIssuedAt()
        Returns the iat JWT Claims Set parameter.
        Returns:
        the iat JWT Claims Set parameter.
      • getJwdId

        public java.lang.String getJwdId()
        Returns the jti JWT Claims Set parameter.
        Returns:
        the jti JWT Claims Set parameter.
      • getType

        public java.lang.String getType()
        Returns the typ JWT Claims Set parameter.
        Returns:
        the typ JWT Claims Set parameter.