public class UUToken
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private long |
creationTime
Creation time of this form token.
|
private java.util.Map<java.lang.String,java.lang.String> |
customClaims
Custom claims.
|
private long |
expirationTime
After this time the token will be considered as expired and therefore invalid.
|
private java.lang.String |
issuer
Identifies the principal that issued the token.
|
private java.lang.String |
principal
User's principal.
|
private java.lang.String |
securityRealm
User's security realm.
|
private java.lang.String |
uuApplicationName
Determines UU application.
|
Constructor and Description |
---|
UUToken()
Creates a new instance of UESFormToken.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getCreationTime()
Getter for property timestamp.
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomClaims()
Getter for property customClaims.
|
long |
getExpirationTime()
Getter for property expirationTime.
|
java.lang.String |
getIssuer()
Getter for property issuer.
|
java.lang.String |
getPrincipal()
Getter for property principal.
|
java.lang.String |
getSecurityRealm()
Getter for property securityRealm.
|
java.lang.String |
getUuApplicationName()
Getter for property uuApplicationName.
|
int |
hashCode() |
void |
setCreationTime(long timestamp)
Setter for property timestamp.
|
void |
setCustomClaims(java.util.Map<java.lang.String,java.lang.String> customClaims)
Setter for property customClaims.
|
void |
setExpirationTime(long expirationTime)
Setter for property expirationTime.
|
void |
setIssuer(java.lang.String issuer)
Setter for property issuer.
|
void |
setPrincipal(java.lang.String principal)
Setter for property principal.
|
void |
setSecurityRealm(java.lang.String securityRealm)
Setter for property securityRealm.
|
void |
setUuApplicationName(java.lang.String uuApplicationName)
Setter for property uuApplicationName.
|
java.lang.String |
toString() |
private long |
updateTime(long timestamp)
Updates time of UU token to be in accordance with JWT specification (see
IntDate
declaration).
|
timestamp
- Timestamp value.Setter for property timestamp.
timestamp
- The timestamp to set. The time unit is seconds.Getter for property expirationTime.
expirationTime
- The expirationTime to set. The time unit is seconds.principal
- The principal to set.securityRealm
- The security realm to set.uuApplicationName
- The uuApplicationName to set.issuer
- The issuer to set.customClaims
- The customClaims to set.hashCode
in class java.lang.Object
Object.hashCode()
equals
in class java.lang.Object
Object.equals(java.lang.Object)
toString
in class java.lang.Object
Object.toString()