Class PrimaryPrincipal

  • All Implemented Interfaces:
    java.io.Serializable

    public class PrimaryPrincipal
    extends java.lang.Object
    implements java.io.Serializable
    A primary principal, which holds technical user id. This principal may be used by the realm in order to indicate a primary principal, see PrincipalCollection.getPrimaryPrincipal(). The SecurityHelper.getUserId(org.apache.shiro.subject.Subject) handles this type.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PrimaryPrincipal​(java.lang.String id)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PrimaryPrincipal

        public PrimaryPrincipal​(java.lang.String id)
    • Method Detail

      • getId

        public java.lang.String getId()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object