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 Summary
Constructors -
Method Summary
Methods inherited from interface org.apereo.cas.authentication.principal.Principal
containsAttribute, getSingleValuedAttribute, getSingleValuedAttribute
-
Constructor Details
-
SimplePrincipal
public SimplePrincipal()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
getId
- Specified by:
getIdin interfaceorg.apereo.cas.authentication.principal.Principal
-
getAttributes
Principal attributes.- Specified by:
getAttributesin interfaceorg.apereo.cas.authentication.principal.Principal
-