Class DefaultAuthentication

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.authentication.Authentication

    public class DefaultAuthentication
    extends java.lang.Object
    implements org.apereo.cas.authentication.Authentication
    Immutable authentication event whose attributes may not change after creation. This class is designed for serialization and is suitable for long-term storage.
    Since:
    3.0.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttribute​(java.lang.String name, java.lang.Object value)  
      boolean isEqualTo​(org.apereo.cas.authentication.Authentication auth2)  
      void update​(org.apereo.cas.authentication.Authentication authn)  
      void updateAll​(org.apereo.cas.authentication.Authentication authn)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.Authentication

        getAttributes, getAuthenticationDate, getCredentials, getFailures, getPrincipal, getSuccesses, getWarnings
    • Constructor Detail

      • DefaultAuthentication

        public DefaultAuthentication()
    • Method Detail

      • update

        public void update​(org.apereo.cas.authentication.Authentication authn)
        Specified by:
        update in interface org.apereo.cas.authentication.Authentication
      • updateAll

        public void updateAll​(org.apereo.cas.authentication.Authentication authn)
        Specified by:
        updateAll in interface org.apereo.cas.authentication.Authentication
      • addAttribute

        public void addAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Specified by:
        addAttribute in interface org.apereo.cas.authentication.Authentication
      • isEqualTo

        public boolean isEqualTo​(org.apereo.cas.authentication.Authentication auth2)
        Specified by:
        isEqualTo in interface org.apereo.cas.authentication.Authentication