public abstract class AuthenticationAbstract<U> extends Object implements org.springframework.security.core.Authentication, Token
| Modifier and Type | Field and Description |
|---|---|
protected long |
created |
protected U |
user |
| Constructor and Description |
|---|
AuthenticationAbstract() |
AuthenticationAbstract(U user) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreated() |
Object |
getCredentials() |
Object |
getDetails() |
String |
getName() |
Object |
getPrincipal() |
U |
getUser() |
boolean |
isAuthenticated() |
boolean |
isExpired(long validAgeMills) |
void |
setAuthenticated(boolean isAuthenticated) |
void |
setCreated(long created) |
void |
setUser(U user) |
protected U user
protected long created
public AuthenticationAbstract()
public AuthenticationAbstract(U user)
public U getUser()
public void setUser(U user)
public Object getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic Object getDetails()
getDetails in interface org.springframework.security.core.Authenticationpublic Object getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic boolean isAuthenticated()
isAuthenticated in interface org.springframework.security.core.Authenticationpublic void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.AuthenticationIllegalArgumentExceptionpublic long getCreated()
public void setCreated(long created)
Copyright © 2020. All rights reserved.