public interface SecurityContext
| Modifier and Type | Field and Description |
|---|---|
static SecurityContext |
NONE
Empty security context.
|
| Modifier and Type | Method and Description |
|---|---|
java.security.Principal |
getPrincipal()
Return the currently authenticated
Principal or null. |
boolean |
isUserInRole(java.lang.String role)
Returns
true if the currently authenticated user is in the given
role, or false otherwise. |
static final SecurityContext NONE
java.security.Principal getPrincipal()
Principal or null.nullboolean isUserInRole(java.lang.String role)
true if the currently authenticated user is in the given
role, or false otherwise.role - name of the roletrue if the user is in the given role