Class BasicAuthPrincipal<UserInfo>

  • Type Parameters:
    UserInfo - the type of user info objects wrapped by this instance
    All Implemented Interfaces:
    java.security.Principal

    public class BasicAuthPrincipal<UserInfo>
    extends java.lang.Object
    implements java.security.Principal
    A generic Principal that wraps a user provided UserInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()  
      int hashCode()  
      java.lang.String toString()  
      UserInfo userInfo()
      Get the wrapped UserInfo.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • BasicAuthPrincipal

        public BasicAuthPrincipal​(UserInfo userInfo)
        Create a new instance.
        Parameters:
        userInfo - the wrapped UserInfo
    • Method Detail

      • userInfo

        public UserInfo userInfo()
        Get the wrapped UserInfo.
        Returns:
        the wrapped UserInfo
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.security.Principal
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.security.Principal
        Overrides:
        hashCode in class java.lang.Object