java.lang.Object
org.eclipse.jetty.security.UserPrincipal
- All Implemented Interfaces:
Serializable
,Principal
- Direct Known Subclasses:
JDBCLoginService.JDBCUserPrincipal
UserPrincipal
Represents a user with a credential.
Instances of this class can be added to a Subject to
present the user, while the credentials can be added
directly to the Subject.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.eclipse.jetty.util.security.Credential
-
Constructor Summary
ConstructorsConstructorDescriptionUserPrincipal
(String name, org.eclipse.jetty.util.security.Credential credential) -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(Object credentials) boolean
boolean
authenticate
(org.eclipse.jetty.util.security.Credential c) void
configureSubject
(Subject subject) void
deconfigureSubject
(Subject subject) getName()
toString()
-
Field Details
-
_credential
protected final org.eclipse.jetty.util.security.Credential _credential
-
-
Constructor Details
-
UserPrincipal
-
-
Method Details