Class NullPrincipal
java.lang.Object
org.apereo.cas.authentication.principal.NullPrincipal
- All Implemented Interfaces:
Serializable,org.apereo.cas.authentication.principal.Principal
public class NullPrincipal
extends Object
implements org.apereo.cas.authentication.principal.Principal
Null principal implementation that allows us to construct
Authentications in the event that no
principal is resolved during the authentication process.- Since:
- 4.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()static NullPrincipalReturns the single instance of this class.inthashCode()toString()Methods inherited from interface org.apereo.cas.authentication.principal.Principal
containsAttribute, getAttributes, getSingleValuedAttribute, getSingleValuedAttribute
-
Constructor Details
-
NullPrincipal
public NullPrincipal()
-
-
Method Details
-
getInstance
Returns the single instance of this class. Will create one if none exists.- Returns:
- the instance
-
getId
- Specified by:
getIdin interfaceorg.apereo.cas.authentication.principal.Principal
-
equals
-
hashCode
public int hashCode() -
toString
-