Class JsonWebTokenPayLoad


  • public class JsonWebTokenPayLoad
    extends java.lang.Object
    JSON Web Token payload model class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long getExpiration()
      get token expiration time
      java.util.Map<java.lang.String,​java.lang.String> getExtraProperties()
      Returns extra properties set in payload
      java.lang.Long getIssuedAtTime()
      get the time the token was issued at
      java.lang.String getSubject()  
      void setExpiration​(java.lang.Long expiration)
      set token expiration time
      void setExtraProperties​(java.util.Map<java.lang.String,​java.lang.String> extraProperties)
      Set extra properties (key-value pair) in JSON payload
      void setIssuedAtTime​(java.lang.Long issuedAtTime)
      set token issuance time
      void setSubject​(java.lang.String subject)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JsonWebTokenPayLoad

        public JsonWebTokenPayLoad()
      • JsonWebTokenPayLoad

        public JsonWebTokenPayLoad​(java.lang.String subject)
        Parameters:
        subject -
      • JsonWebTokenPayLoad

        public JsonWebTokenPayLoad​(java.lang.String subject,
                                   java.lang.Long expiration,
                                   java.lang.Long issuedAtTime)
        Parameters:
        subject -
        expiration -
        issuedAtTime -
    • Method Detail

      • getExtraProperties

        public java.util.Map<java.lang.String,​java.lang.String> getExtraProperties()
        Returns extra properties set in payload
        Returns:
      • setExtraProperties

        public void setExtraProperties​(java.util.Map<java.lang.String,​java.lang.String> extraProperties)
        Set extra properties (key-value pair) in JSON payload
        Parameters:
        extraProperties -
      • getExpiration

        public java.lang.Long getExpiration()
        get token expiration time
        Returns:
      • setExpiration

        public void setExpiration​(java.lang.Long expiration)
        set token expiration time
        Parameters:
        expiration -
      • getIssuedAtTime

        public java.lang.Long getIssuedAtTime()
        get the time the token was issued at
        Returns:
      • setIssuedAtTime

        public void setIssuedAtTime​(java.lang.Long issuedAtTime)
        set token issuance time
        Parameters:
        issuedAtTime -
      • getSubject

        public java.lang.String getSubject()
      • setSubject

        public void setSubject​(java.lang.String subject)
        Parameters:
        subject -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object