Class 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
    • Field Detail

      • user

        protected U user
      • created

        protected long created
    • Constructor Detail

      • AuthenticationAbstract

        public AuthenticationAbstract()
      • AuthenticationAbstract

        public AuthenticationAbstract​(U user)
    • Method Detail

      • 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
      • getCreated

        public long getCreated()
      • setCreated

        public void setCreated​(long created)