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 Summary
ConstructorsConstructorDescriptionSimplePersonAttributes(String name) SimplePersonAttributes(Map<String, List<Object>> attributes) -
Method Summary
Modifier and TypeMethodDescriptionCanonicalize simple person attributes.booleanstatic SimplePersonAttributesBuild simple person from username attribute.getAttributeValue(String name) getAttributeValues(String name) getName()inthashCode()toString()
-
Constructor Details
-
SimplePersonAttributes
-
SimplePersonAttributes
-
SimplePersonAttributes
public SimplePersonAttributes() -
SimplePersonAttributes
-
-
Method Details
-
fromAttribute
public static SimplePersonAttributes fromAttribute(String attribute, Map<String, List<Object>> attributes) Build simple person from username attribute.- Parameters:
attribute- the attributeattributes- the attributes- Returns:
- the simple person attributes
-
canonicalize
Canonicalize simple person attributes.- Parameters:
mode- the mode- Returns:
- the simple person attributes
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceorg.apereo.cas.authentication.principal.attribute.PersonAttributes
-
getAttributeValues
- Specified by:
getAttributeValuesin interfaceorg.apereo.cas.authentication.principal.attribute.PersonAttributes
-
getAttributes
- Specified by:
getAttributesin interfaceorg.apereo.cas.authentication.principal.attribute.PersonAttributes
-
getName
-
equals
-
hashCode
public int hashCode() -
toString
-