Class AuthenticatedUser
- java.lang.Object
-
- de.digitalcollections.commons.springsecurity.jwt.AuthenticatedUser
-
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication
public class AuthenticatedUser extends Object implements org.springframework.security.core.Authentication
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedUser(String username)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends org.springframework.security.core.GrantedAuthority>getAuthorities()ObjectgetCredentials()ObjectgetDetails()StringgetName()ObjectgetPrincipal()booleanisAuthenticated()voidsetAuthenticated(boolean isAuthenticated)
-
-
-
Constructor Detail
-
AuthenticatedUser
public AuthenticatedUser(String username)
-
-
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 isAuthenticated) throws IllegalArgumentException- Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication- Throws:
IllegalArgumentException
-
-