public interface SecurityContext
| 限定符和类型 | 字段和说明 |
|---|---|
static SecurityContext |
NONE
Empty security context.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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