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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanThe default implementation of this method returns true, indicating that login auditing is allowed for all the providers.protected voidclearCache(String repositoryName, String user, Object password, AuthType authType) Clear Ehcache memory session manager by input.protected com.documentum.fc.client.IDfSessiongetSession(com.documentum.fc.client.IDfSessionManager manager, String repositoryName) Get a DFC session from a DFC session manager.protected org.springframework.security.authentication.AuthenticationServiceExceptiongetWrappedException(com.documentum.fc.client.IDfSessionManager manager, String repositoryName, com.documentum.fc.common.DfException e) Convert DFC exception to an authentication exception.protected voidlogAuthenticationFailure(com.documentum.fc.client.IDfSession session, String repositoryName, String user) protected voidonSuccessfulSessionRetrieval(com.documentum.fc.client.IDfSession session) This method is called after a successful session retrieval.voidSet 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
-
logAuthenticationFailure
-
clearCache
Clear Ehcache memory session manager by input.- Parameters:
repositoryName- repository nameuser- user login namepassword- user passwordauthType- authentication type- See Also:
-
onSuccessfulSessionRetrieval
protected void onSuccessfulSessionRetrieval(com.documentum.fc.client.IDfSession session) This method is called after a successful session retrieval. It can be overridden by subclasses to perform additional actions on over login auditing.- Parameters:
session- the successfully retrieved DFC session
-
allowLoginAuditing
protected boolean allowLoginAuditing()The default implementation of this method returns true, indicating that login auditing is allowed for all the providers. If any provider does not need this functionality, it can override this method to return false. For example, the ClientTokenAuthProvider does not need login auditing.
-