Package org.dspace.app.rest.security
Class DSpaceAuthentication
- java.lang.Object
-
- org.dspace.app.rest.security.DSpaceAuthentication
-
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication
public class DSpaceAuthentication extends Object implements org.springframework.security.core.Authentication
Custom Authentication for use with DSpace- Author:
- Frederic Van Reet (frederic dot vanreet at atmire dot com), Tom Desair (tom dot desair at atmire dot com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DSpaceAuthentication(String username, String password, List<org.springframework.security.core.GrantedAuthority> authorities)DSpaceAuthentication(String username, List<org.springframework.security.core.GrantedAuthority> authorities)DSpaceAuthentication(org.dspace.eperson.EPerson ePerson, List<org.springframework.security.core.GrantedAuthority> authorities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends org.springframework.security.core.GrantedAuthority>getAuthorities()ObjectgetCredentials()ObjectgetDetails()StringgetName()DategetPreviousLoginDate()ObjectgetPrincipal()booleanisAuthenticated()voidsetAuthenticated(boolean authenticated)
-
-
-
Constructor Detail
-
DSpaceAuthentication
public DSpaceAuthentication(org.dspace.eperson.EPerson ePerson, List<org.springframework.security.core.GrantedAuthority> authorities)
-
DSpaceAuthentication
public DSpaceAuthentication(String username, String password, List<org.springframework.security.core.GrantedAuthority> authorities)
-
-
Method Detail
-
getAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.Authentication
-
getCredentials
public Object getCredentials()
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getDetails
public Object getDetails()
- Specified by:
getDetailsin interfaceorg.springframework.security.core.Authentication
-
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticatedin interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
public void setAuthenticated(boolean authenticated) throws IllegalArgumentException- Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication- Throws:
IllegalArgumentException
-
getPreviousLoginDate
public Date getPreviousLoginDate()
-
-