@Entity public class SavedUserAuthentication extends Object implements org.springframework.security.core.Authentication
Constructor and Description |
---|
SavedUserAuthentication()
Create an empty saved auth
|
SavedUserAuthentication(org.springframework.security.core.Authentication src)
Create a Saved Auth from an existing Auth token
|
Modifier and Type | Method and Description |
---|---|
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Object |
getCredentials() |
Object |
getDetails() |
Long |
getId() |
String |
getName() |
Object |
getPrincipal() |
String |
getSourceClass() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
void |
setAuthorities(Collection<org.springframework.security.core.GrantedAuthority> authorities) |
void |
setId(Long id) |
void |
setName(String name) |
void |
setSourceClass(String sourceClass) |
public SavedUserAuthentication(org.springframework.security.core.Authentication src)
public SavedUserAuthentication()
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.Authentication
public Object getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public Object getDetails()
getDetails
in interface org.springframework.security.core.Authentication
public Object getPrincipal()
getPrincipal
in interface org.springframework.security.core.Authentication
public boolean isAuthenticated()
isAuthenticated
in interface org.springframework.security.core.Authentication
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
setAuthenticated
in interface org.springframework.security.core.Authentication
IllegalArgumentException
public String getSourceClass()
public void setSourceClass(String sourceClass)
sourceClass
- the sourceClass to setpublic void setAuthorities(Collection<org.springframework.security.core.GrantedAuthority> authorities)
authorities
- the authorities to setCopyright © 2018. All rights reserved.