Package org.duracloud.duradmin.security
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) voidsetContentStoreManager(ContentStoreManager contentStoreManager) boolean
-
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:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
getContentStoreManager
-
setContentStoreManager
-