Package org.eclipse.jetty.jaas
Class JAASUserPrincipal
- java.lang.Object
-
- org.eclipse.jetty.jaas.JAASUserPrincipal
-
- All Implemented Interfaces:
java.security.Principal
public class JAASUserPrincipal extends java.lang.Object implements java.security.Principal
JAASUserPrincipalImplements the JAAS version of the org.eclipse.jetty.http.UserPrincipal interface.
-
-
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 java.lang.String
getName()
Get the name identifying the userjavax.security.auth.Subject
getSubject()
Provide access to the Subjectjava.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name identifying the user- Specified by:
getName
in interfacejava.security.Principal
-
getSubject
public javax.security.auth.Subject getSubject()
Provide access to the Subject- Returns:
- subject
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
-
-