Class AbstractClientTokenAuthProvider
java.lang.Object
com.emc.documentum.rest.security.provider.AbstractAuthProvider
com.emc.documentum.rest.security.provider.AbstractClientTokenAuthProvider
This abstract provider additionally provides client token utility.
-
Field Summary
Fields inherited from class com.emc.documentum.rest.security.provider.AbstractAuthProvider
memoryRepositorySessionManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClientTokenAuthToken
produceRestTicketToken
(org.springframework.security.authentication.AbstractAuthenticationToken token, boolean reuseLoginTicketPreferred, com.documentum.fc.client.IDfSession session) Produce a client token authentication token.void
setClientTokenSupport
(boolean clientTokenSupport) Set whether to support client token.Methods inherited from class com.emc.documentum.rest.security.provider.AbstractAuthProvider
clearCache, getSession, getWrappedException, setRepositorySessionManager
-
Field Details
-
clientTokenSupport
protected boolean clientTokenSupport
-
-
Constructor Details
-
AbstractClientTokenAuthProvider
public AbstractClientTokenAuthProvider()
-
-
Method Details
-
setClientTokenSupport
public void setClientTokenSupport(boolean clientTokenSupport) Set whether to support client token.- Parameters:
clientTokenSupport
- true indicates to support client token; false for otherwise.
-
produceRestTicketToken
protected ClientTokenAuthToken produceRestTicketToken(org.springframework.security.authentication.AbstractAuthenticationToken token, boolean reuseLoginTicketPreferred, com.documentum.fc.client.IDfSession session) throws com.documentum.fc.common.DfException Produce a client token authentication token. The authentication filter later can use this token to generate a cookie.- Parameters:
token
- original authentication tokenreuseLoginTicketPreferred
- indicate whether to reuse existing login ticket from the original authentication token to generate a client token authentication tokensession
- DFC session- Returns:
- the client token authentication token
- Throws:
com.documentum.fc.common.DfException
- when it fails to validate or generate the token.
-