Class SimplePersonAttributes

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

public class SimplePersonAttributes extends Object implements org.apereo.cas.authentication.principal.attribute.PersonAttributes
Represents a simple person with its attributes.
Since:
7.1.0
See Also:
  • Constructor Details

    • SimplePersonAttributes

      public SimplePersonAttributes(String name, Map<String,List<Object>> attributes)
    • SimplePersonAttributes

      public SimplePersonAttributes(Map<String,List<Object>> attributes)
    • SimplePersonAttributes

      public SimplePersonAttributes()
    • SimplePersonAttributes

      public SimplePersonAttributes(String name)
  • Method Details

    • fromAttribute

      public static SimplePersonAttributes fromAttribute(String attribute, Map<String,List<Object>> attributes)
      Build simple person from username attribute.
      Parameters:
      attribute - the attribute
      attributes - the attributes
      Returns:
      the simple person attributes
    • canonicalize

      Canonicalize simple person attributes.
      Parameters:
      mode - the mode
      Returns:
      the simple person attributes
    • getAttributeValue

      public Object getAttributeValue(String name)
      Specified by:
      getAttributeValue in interface org.apereo.cas.authentication.principal.attribute.PersonAttributes
    • getAttributeValues

      public List<Object> getAttributeValues(String name)
      Specified by:
      getAttributeValues in interface org.apereo.cas.authentication.principal.attribute.PersonAttributes
    • getAttributes

      public Map<String,List<Object>> getAttributes()
      Specified by:
      getAttributes in interface org.apereo.cas.authentication.principal.attribute.PersonAttributes
    • getName

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

      public boolean equals(Object o)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class Object