Class ClientToken
java.lang.Object
com.emc.documentum.rest.security.ticket.ClientToken
- All Implemented Interfaces:
Serializable
Data model for Documentum Client Token.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Token fields for client token -
Field Summary
-
Constructor Summary
ConstructorDescriptionClientToken
(String dt, String principal, String domain, Map<ClientToken.TokenField, ?> others) Constructor which instantiates the client token by login ticket string.Constructor which instantiates the client token by fields. -
Method Summary
Modifier and TypeMethodDescriptionvoid
delaySetCSRFToken
(Map<ClientToken.TokenField, ?> csrf) Delay set CSRF token for the client token.static ClientToken
deserializeFrom
(String clientTokenString) Deserialize client token from a serialized string.Get token creation date.Get CSRF header name.Get CSRF query parameter.Get CSRF token.Get CSRF token digest.Get documentum login ticket.Get user domain.Get token expiration date.Get token issuer.Get the login ticket expiration time.int
Get the token max age in seconds.Get user principal.Serialize the client token into a string.protected String
toString()
-
Field Details
-
INVALID_CLIENT_TOKEN
- See Also:
-
ENTRY_DELIMITER
- See Also:
-
KV_DELIMITER
- See Also:
-
CHARSET
- See Also:
-
-
Constructor Details
-
ClientToken
public ClientToken(String dt, String principal, String domain, Map<ClientToken.TokenField, ?> others) Constructor which instantiates the client token by login ticket string.- Parameters:
dt
- documentum login ticket in Stringprincipal
- user principaldomain
- user domainothers
- token fields
-
ClientToken
Constructor which instantiates the client token by fields.- Parameters:
all
- token fields
-
-
Method Details
-
getPrincipal
Get user principal.- Returns:
- user principal
-
getCreatedTime
Get token creation date.- Returns:
- the token creation date
-
getExpireTime
Get token expiration date.- Returns:
- the token expiration date
-
getMaxAge
public int getMaxAge()Get the token max age in seconds.- Returns:
- the token max age
-
getLoginTicketExpireTime
Get the login ticket expiration time.- Returns:
- the login ticket expration time
-
getIssuer
Get token issuer.- Returns:
- the token issuer
-
getDomain
Get user domain.- Returns:
- the user domain
-
getDocumentumLoginTicket
Get documentum login ticket.- Returns:
- the documentum login ticket
-
getCSRFToken
Get CSRF token.- Returns:
- the CSRF token
-
getCSRFHeaderName
Get CSRF header name.- Returns:
- the CSRF header name
-
getCSRFQueryName
Get CSRF query parameter.- Returns:
- the CSRF query parameter
-
getCSRFTokenMessageDigest
Get CSRF token digest.- Returns:
- the CSRF token digest
-
delaySetCSRFToken
Delay set CSRF token for the client token. If the CSRF token has already been set or the input fields do not contain the complete CSRF fields, aCSRFServerException
will be thrown.- Parameters:
csrf
- CSRF related fields
-
serialize
Serialize the client token into a string.- Returns:
- the serialized string
-
deserializeFrom
Deserialize client token from a serialized string.- Parameters:
clientTokenString
- client token in serialized string- Returns:
- client token
-
toString
-
serializeAsString
-