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 Details

    • NullPrincipal

      public NullPrincipal()
  • Method Details

    • getInstance

      public static NullPrincipal getInstance()
      Returns the single instance of this class. Will create one if none exists.
      Returns:
      the instance
    • getId

      public String getId()
      Specified by:
      getId in interface org.apereo.cas.authentication.principal.Principal
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object