UserIdentity.UnauthenticatedUserIdentitypublic interface UserIdentity
Implementations of UserIdentity should be immutable so that they may be cached by Authenticators and LoginServices.
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
UserIdentity.Scope |
A UserIdentity Scope.
|
static interface |
UserIdentity.UnauthenticatedUserIdentity |
| Modifier and Type | Field | Description |
|---|---|---|
static UserIdentity |
UNAUTHENTICATED_IDENTITY |
| Modifier and Type | Method | Description |
|---|---|---|
javax.security.auth.Subject |
getSubject() |
|
java.security.Principal |
getUserPrincipal() |
|
boolean |
isUserInRole(java.lang.String role,
UserIdentity.Scope scope) |
Check if the user is in a role.
|
static final UserIdentity UNAUTHENTICATED_IDENTITY
javax.security.auth.Subject getSubject()
java.security.Principal getUserPrincipal()
boolean isUserInRole(java.lang.String role,
UserIdentity.Scope scope)
role - A role name.scope - the scopeCopyright © 1995–2018 Webtide. All rights reserved.