Class AbstractAuthProvider

java.lang.Object
com.emc.documentum.rest.security.provider.AbstractAuthProvider
Direct Known Subclasses:
AbstractClientTokenAuthProvider

public abstract class AbstractAuthProvider extends Object
This abstract provider provides DFC session operation.
  • Field Details

  • Constructor Details

    • AbstractAuthProvider

      public AbstractAuthProvider()
  • Method Details

    • setRepositorySessionManager

      public void setRepositorySessionManager(RepositorySessionManager manager)
      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 manager
      repositoryName - 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 manager
      repositoryName - repository name
      e - original DFC exception
      Returns:
      authentication exception
    • clearCache

      protected void clearCache(String repositoryName, String user, Object password, AuthType authType)
      Clear Ehcache memory session manager by input.
      Parameters:
      repositoryName - repository name
      user - user login name
      password - user password
      authType - authentication type
      See Also: