Interface ClientTokenFactory
public interface ClientTokenFactory
A factory to create, encrypt and decrypt client token.
-
Method Summary
Modifier and TypeMethodDescriptiondecryptClientToken
(String base64EncryptedToken) Decrypt the REST client token.encryptClientToken
(ClientToken token) Encrypt the REST client token.newClientToken
(String documentumLoginTicket, String username, String domain, Map<ClientToken.TokenField, ?> others) Create a new REST client token.
-
Method Details
-
newClientToken
ClientToken newClientToken(String documentumLoginTicket, String username, String domain, Map<ClientToken.TokenField, ?> others) Create a new REST client token.- Parameters:
username
- the username for the client tokendomain
- domain name of the userdocumentumLoginTicket
- documentum login ticketothers
- other fields- Returns:
- the new ticket
-
decryptClientToken
Decrypt the REST client token.- Parameters:
base64EncryptedToken
- the client token in BASE64 encoding string- Returns:
- the client token in Java structured object
-
encryptClientToken
Encrypt the REST client token.- Parameters:
token
- the client token in Java structured object- Returns:
- the client token in BASE64 encoding string
-