public class MSecurity extends Object
MSecurity class.
| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_CLASS
Constant
GROUP_CLASS="GroupPrincipal" |
static String |
ROLE_CLASS
Constant
ROLE_CLASS="RolePrincipal" |
static String |
USER_CLASS
Constant
USER_CLASS="UserPrincipal" |
| Constructor and Description |
|---|
MSecurity() |
| Modifier and Type | Method and Description |
|---|---|
static List<Principal> |
getGroups(Subject subject)
getGroups.
|
static List<Principal> |
getRoles(Subject subject)
getRoles.
|
static Principal |
getUser(Subject subject)
getUser.
|
static boolean |
hasGroup(Subject subject,
String name)
hasGroup.
|
static boolean |
hasRole(Subject subject,
String name)
hasRole.
|
public static final String USER_CLASS
USER_CLASS="UserPrincipal"public static final String GROUP_CLASS
GROUP_CLASS="GroupPrincipal"public static final String ROLE_CLASS
ROLE_CLASS="RolePrincipal"Copyright © 2016. All Rights Reserved.