Class JsonWebToken.Payload

  • Enclosing class:
    JsonWebToken

    public class JsonWebToken.Payload
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Payload()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAudience()
      Returns the "Audience" ("aud") value with this JsonWebToken.
      java.lang.Long getExpiresAt()
      Returns the "Expires At" ("exp") value within this JsonWebToken.
      java.lang.Long getIssuedAt()
      Returns the "Issued At" ("iat") value within this JsonWebToken.
      java.lang.String getIssuer()
      Returns the "Issuer" ("iss") value with this JsonWebToken.
      java.lang.String getRole()
      Returns the "Role" ("role") value with this JsonWebToken.
      java.lang.String getSubject()
      Returns the "Subject" ("sub") value with this JsonWebToken.
      java.lang.String getUserId()
      Returns the "Userid" ("uid") value with this JsonWebToken.
      java.lang.String getUsername()
      Returns the "Username" ("username") value with this JsonWebToken.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Payload

        public Payload()
    • Method Detail

      • getIssuedAt

        public java.lang.Long getIssuedAt()
        Returns the "Issued At" ("iat") value within this JsonWebToken.
        Returns:
        the iat value
      • getExpiresAt

        public java.lang.Long getExpiresAt()
        Returns the "Expires At" ("exp") value within this JsonWebToken.
        Returns:
        the exp value
      • getSubject

        public java.lang.String getSubject()
        Returns the "Subject" ("sub") value with this JsonWebToken.
        Returns:
        the sub value
      • getIssuer

        public java.lang.String getIssuer()
        Returns the "Issuer" ("iss") value with this JsonWebToken.
        Returns:
        the iss value
      • getAudience

        public java.lang.String getAudience()
        Returns the "Audience" ("aud") value with this JsonWebToken.
        Returns:
        the aud value
      • getUserId

        public java.lang.String getUserId()
        Returns the "Userid" ("uid") value with this JsonWebToken.
        Returns:
        the uid value
      • getUsername

        public java.lang.String getUsername()
        Returns the "Username" ("username") value with this JsonWebToken.
        Returns:
        the username value
      • getRole

        public java.lang.String getRole()
        Returns the "Role" ("role") value with this JsonWebToken.
        Returns:
        the role value