Package org.dspace.app.rest.security
Class EPersonRestAuthenticationProvider
- java.lang.Object
-
- org.dspace.app.rest.security.EPersonRestAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
@Component public class EPersonRestAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
This class is responsible for authenticating a user via REST- Author:
- Frederic Van Reet (frederic dot vanreet at atmire dot com), Tom Desair (tom dot desair at atmire dot com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringMANAGE_ACCESS_GROUP
-
Constructor Summary
Constructors Constructor Description EPersonRestAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)List<org.springframework.security.core.GrantedAuthority>getGrantedAuthorities(org.dspace.core.Context context)booleansupports(Class<?> authentication)
-
-
-
Field Detail
-
MANAGE_ACCESS_GROUP
public static final String MANAGE_ACCESS_GROUP
- See Also:
- Constant Field Values
-
-
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
-
getGrantedAuthorities
public List<org.springframework.security.core.GrantedAuthority> getGrantedAuthorities(org.dspace.core.Context context)
-
supports
public boolean supports(Class<?> authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-