Package org.eclipse.jetty.security
Class AbstractLoginService.UserPrincipal
- java.lang.Object
-
- org.eclipse.jetty.security.AbstractLoginService.UserPrincipal
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Principal
- Direct Known Subclasses:
DataSourceLoginService.DBUserPrincipal
,JDBCLoginService.JDBCUserPrincipal
- Enclosing class:
- AbstractLoginService
public static class AbstractLoginService.UserPrincipal extends java.lang.Object implements java.security.Principal, java.io.Serializable
UserPrincipal- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPrincipal(java.lang.String name, Credential credential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(java.lang.Object credentials)
boolean
authenticate(Credential c)
java.lang.String
getName()
java.lang.String
toString()
-
-
-
Constructor Detail
-
UserPrincipal
public UserPrincipal(java.lang.String name, Credential credential)
-
-
Method Detail
-
authenticate
public boolean authenticate(java.lang.Object credentials)
-
authenticate
public boolean authenticate(Credential c)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacejava.security.Principal
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
-
-