Class 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.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:
    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.String getId()  
      static NullPrincipal getInstance()
      Returns the single instance of this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.principal.Principal

        getAttributes
    • Constructor Detail

      • NullPrincipal

        public NullPrincipal()
    • 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:
        getId in interface org.apereo.cas.authentication.principal.Principal