Implementations of UserIdentity should be immutable so that they may be cached by Authenticators and LoginServices.
| Modifier and Type | Method and Description |
|---|---|
| public static UserIdentity | |
| public Subject | |
| public Principal | |
| public boolean | Returns: True if the user can act in that role.A role name. role)Check if the user is in a role. |
| from | back to summary |
|---|---|
| public static UserIdentity from(Subject subject, Principal userPrincipal, String... roles) | |
| getSubject | back to summary |
|---|---|
public Subject getSubject()
| |
| getUserPrincipal | back to summary |
|---|---|
public Principal getUserPrincipal()
| |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String role) Check if the user is in a role. This call is used to satisfy authorization calls from container code which will be using translated role names.
| |