Class AbstractAuthProvider
java.lang.Object
com.emc.documentum.rest.security.provider.AbstractAuthProvider
- Direct Known Subclasses:
AbstractClientTokenAuthProvider
This abstract provider provides DFC session operation.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearCache
(String repositoryName, String user, Object password, AuthType authType) Clear Ehcache memory session manager by input.protected com.documentum.fc.client.IDfSession
getSession
(com.documentum.fc.client.IDfSessionManager manager, String repositoryName) Get a DFC session from a DFC session manager.protected org.springframework.security.authentication.AuthenticationServiceException
getWrappedException
(com.documentum.fc.client.IDfSessionManager manager, String repositoryName, com.documentum.fc.common.DfException e) Convert DFC exception to an authentication exception.void
Set repository session manager.
-
Field Details
-
memoryRepositorySessionManager
-
-
Constructor Details
-
AbstractAuthProvider
public AbstractAuthProvider()
-
-
Method Details
-
setRepositorySessionManager
Set repository session manager. By default, the Ehcache memory repository session manager is used.- Parameters:
manager
- DFC session manager
-
getSession
protected com.documentum.fc.client.IDfSession getSession(com.documentum.fc.client.IDfSessionManager manager, String repositoryName) throws com.documentum.fc.common.DfException Get a DFC session from a DFC session manager.- Parameters:
manager
- session managerrepositoryName
- repository name- Returns:
- DFC session
- Throws:
com.documentum.fc.common.DfException
- exceptions
-
getWrappedException
protected org.springframework.security.authentication.AuthenticationServiceException getWrappedException(com.documentum.fc.client.IDfSessionManager manager, String repositoryName, com.documentum.fc.common.DfException e) Convert DFC exception to an authentication exception.- Parameters:
manager
- DFC session managerrepositoryName
- repository namee
- original DFC exception- Returns:
- authentication exception
-
clearCache
Clear Ehcache memory session manager by input.- Parameters:
repositoryName
- repository nameuser
- user login namepassword
- user passwordauthType
- authentication type- See Also:
-