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 Constructor Description ContentStoreAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)ContentStoreManagergetContentStoreManager()voidsetContentStoreManager(ContentStoreManager contentStoreManager)booleansupports(Class authentication)
-
-
-
Method Detail
-
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
public boolean supports(Class authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
getContentStoreManager
public ContentStoreManager getContentStoreManager()
-
setContentStoreManager
public void setContentStoreManager(ContentStoreManager contentStoreManager)
-
-