Class ContentStoreAuthenticationProvider

java.lang.Object
org.duracloud.duradmin.security.ContentStoreAuthenticationProvider
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider

public class ContentStoreAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
A custom authentication provider that grants ROLE_USER authority to a client who successfully logs into the content store manager.
Version:
$Id$
Author:
Daniel Bernstein
  • Constructor Details

    • ContentStoreAuthenticationProvider

      public ContentStoreAuthenticationProvider()
  • Method Details

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(Class authentication)
      Specified by:
      supports in interface org.springframework.security.authentication.AuthenticationProvider
    • getContentStoreManager

      public ContentStoreManager getContentStoreManager()
    • setContentStoreManager

      public void setContentStoreManager(ContentStoreManager contentStoreManager)