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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetName()getUser()booleanbooleanisExpired(long validAgeMills) voidsetAuthenticated(boolean isAuthenticated) voidsetCreated(long created) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.core.Authentication
getAuthorities
-
Field Details
-
user
-
created
protected long created
-
-
Constructor Details
-
AuthenticationAbstract
public AuthenticationAbstract() -
AuthenticationAbstract
-
-
Method Details
-
isExpired
public boolean isExpired(long validAgeMills) -
getUser
-
setUser
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getDetails
- Specified by:
getDetailsin interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticatedin interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
- Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication- Throws:
IllegalArgumentException
-
getCreated
public long getCreated() -
setCreated
public void setCreated(long created) -
getName
-