Package com.microstrategy.utils
Class JsonWebTokenPayLoad
- java.lang.Object
-
- com.microstrategy.utils.JsonWebTokenPayLoad
-
public class JsonWebTokenPayLoad extends java.lang.Object
JSON Web Token payload model class
-
-
Constructor Summary
Constructors Constructor Description JsonWebTokenPayLoad()
JsonWebTokenPayLoad(java.lang.String subject)
JsonWebTokenPayLoad(java.lang.String subject, java.lang.Long expiration, java.lang.Long issuedAtTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getExpiration()
get token expiration timejava.util.Map<java.lang.String,java.lang.String>
getExtraProperties()
Returns extra properties set in payloadjava.lang.Long
getIssuedAtTime()
get the time the token was issued atjava.lang.String
getSubject()
void
setExpiration(java.lang.Long expiration)
set token expiration timevoid
setExtraProperties(java.util.Map<java.lang.String,java.lang.String> extraProperties)
Set extra properties (key-value pair) in JSON payloadvoid
setIssuedAtTime(java.lang.Long issuedAtTime)
set token issuance timevoid
setSubject(java.lang.String subject)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-