Top Description Fields Constructors Methods
org.eclipse.jetty.security.jaas

public Class JAASUserPrincipal

extends Object
implements Principal
Class Inheritance
All Implemented Interfaces
java.security.Principal
Imports
java.security.Principal, javax.security.auth.Subject, javax.security.auth.login.LoginContext

JAASUserPrincipal

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

Field Summary

Modifier and TypeField and Description
private final LoginContext
private final String
private final Subject

Constructor Summary

AccessConstructor and Description
public
JAASUserPrincipal(String name, Subject subject, LoginContext loginContext)

Method Summary

Modifier and TypeMethod and Description
pack-priv LoginContext
public String
getName()

Implements java.security.Principal.getName.

Get the name identifying the user
public Subject

Returns:

subject
getSubject
()

Provide access to the Subject

public String
toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Returns a string representation of this Principal.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_loginContextback to summary
private final LoginContext _loginContext
_nameback to summary
private final String _name
_subjectback to summary
private final Subject _subject

Constructor Detail

JAASUserPrincipalback to summary
public JAASUserPrincipal(String name, Subject subject, LoginContext loginContext)

Method Detail

getLoginContextback to summary
pack-priv LoginContext getLoginContext()
getNameback to summary
public String getName()

Implements java.security.Principal.getName.

Get the name identifying the user

Returns:String

Doc from java.security.Principal.getName.

the name of this Principal.

Annotations
@Override
getSubjectback to summary
public Subject getSubject()

Provide access to the Subject

Returns:Subject

subject

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Doc from java.security.Principal.toString.

Returns a string representation of this Principal.

Returns:String

a string representation of this Principal.

Annotations
@Override