Class AuthenticationAbstract<U>
- java.lang.Object
-
- org.bardframework.commons.security.token.AuthenticationAbstract<U>
-
- All Implemented Interfaces:
Serializable,Principal,Token,org.springframework.security.core.Authentication
public abstract class AuthenticationAbstract<U> extends Object implements org.springframework.security.core.Authentication, Token
Contains information about authentication.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationAbstract()AuthenticationAbstract(U user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreated()ObjectgetCredentials()ObjectgetDetails()StringgetName()ObjectgetPrincipal()UgetUser()booleanisAuthenticated()booleanisExpired(long validAgeMills)voidsetAuthenticated(boolean isAuthenticated)voidsetCreated(long created)voidsetUser(U user)
-
-
-
Field Detail
-
user
protected U user
-
created
protected long created
-
-
Constructor Detail
-
AuthenticationAbstract
public AuthenticationAbstract()
-
AuthenticationAbstract
public AuthenticationAbstract(U user)
-
-
Method Detail
-
getUser
public U getUser()
-
setUser
public void setUser(U user)
-
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
-
getCreated
public long getCreated()
-
setCreated
public void setCreated(long created)
-
-