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 Details

    • user

      protected U user
    • created

      protected long created
  • Constructor Details

    • AuthenticationAbstract

      public AuthenticationAbstract()
    • AuthenticationAbstract

      public AuthenticationAbstract(U user)
  • Method Details

    • isExpired

      public boolean isExpired(long validAgeMills)
      Specified by:
      isExpired in interface Token
    • getUser

      public U getUser()
    • setUser

      public void setUser(U user)
    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.springframework.security.core.Authentication
    • getDetails

      public Object getDetails()
      Specified by:
      getDetails in interface org.springframework.security.core.Authentication
    • getPrincipal

      public Object getPrincipal()
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.springframework.security.core.Authentication
    • setAuthenticated

      public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
      Specified by:
      setAuthenticated in interface org.springframework.security.core.Authentication
      Throws:
      IllegalArgumentException
    • getCreated

      public long getCreated()
    • setCreated

      public void setCreated(long created)
    • getName

      public String getName()
      Specified by:
      getName in interface Principal