Class SimplePrincipal

java.lang.Object
org.apereo.cas.authentication.principal.SimplePrincipal
All Implemented Interfaces:
Serializable, org.apereo.cas.authentication.principal.Principal

public class SimplePrincipal extends Object implements org.apereo.cas.authentication.principal.Principal
Simple implementation of a Principal that exposes an unmodifiable map of attributes. The attributes are cached upon construction and will not be updated unless the principal is entirely and newly resolved again.
Since:
3.1
See Also:
  • Constructor Details

    • SimplePrincipal

      public SimplePrincipal()
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public String getId()
      Specified by:
      getId in interface org.apereo.cas.authentication.principal.Principal
    • getAttributes

      public Map<String,List<Object>> getAttributes()
      Principal attributes.
      Specified by:
      getAttributes in interface org.apereo.cas.authentication.principal.Principal