Class NullPrincipal
- java.lang.Object
-
- org.apereo.cas.authentication.principal.NullPrincipal
-
- All Implemented Interfaces:
java.io.Serializable,org.apereo.cas.authentication.principal.Principal
public class NullPrincipal extends java.lang.Object implements org.apereo.cas.authentication.principal.PrincipalNull principal implementation that allows us to constructAuthentications in the event that no principal is resolved during the authentication process.- Since:
- 4.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullPrincipal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()static NullPrincipalgetInstance()Returns the single instance of this class.
-
-
-
Method Detail
-
getInstance
public static NullPrincipal getInstance()
Returns the single instance of this class. Will create one if none exists.- Returns:
- the instance
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceorg.apereo.cas.authentication.principal.Principal
-
-