Class JAASUserPrincipal

  • All Implemented Interfaces:
    java.security.Principal

    public class JAASUserPrincipal
    extends java.lang.Object
    implements java.security.Principal
    JAASUserPrincipal

    Implements the JAAS version of the org.eclipse.jetty.http.UserPrincipal interface.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.security.auth.login.LoginContext _loginContext  
      private java.lang.String _name  
      private javax.security.auth.Subject _subject  
    • Constructor Summary

      Constructors 
      Constructor Description
      JAASUserPrincipal​(java.lang.String name, javax.security.auth.Subject subject, javax.security.auth.login.LoginContext loginContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) javax.security.auth.login.LoginContext getLoginContext()  
      java.lang.String getName()
      Get the name identifying the user
      javax.security.auth.Subject getSubject()
      Provide access to the Subject
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

        equals, hashCode, implies
    • Field Detail

      • _name

        private final java.lang.String _name
      • _subject

        private final javax.security.auth.Subject _subject
      • _loginContext

        private final javax.security.auth.login.LoginContext _loginContext
    • Constructor Detail

      • JAASUserPrincipal

        public JAASUserPrincipal​(java.lang.String name,
                                 javax.security.auth.Subject subject,
                                 javax.security.auth.login.LoginContext loginContext)
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name identifying the user
        Specified by:
        getName in interface java.security.Principal
      • getSubject

        public javax.security.auth.Subject getSubject()
        Provide access to the Subject
        Returns:
        subject
      • getLoginContext

        javax.security.auth.login.LoginContext getLoginContext()
      • toString

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