Package de.mhus.lib.core.security
Class MSecurity
- java.lang.Object
-
- de.mhus.lib.core.security.MSecurity
-
public class MSecurity extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringGROUP_CLASSstatic StringROLE_CLASSstatic StringUSER_CLASS
-
Constructor Summary
Constructors Constructor Description MSecurity()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Principal>getGroups(Subject subject)static List<Principal>getRoles(Subject subject)static PrincipalgetUser(Subject subject)static booleanhasGroup(Subject subject, String name)static booleanhasRole(Subject subject, String name)
-
-
-
Field Detail
-
USER_CLASS
public static final String USER_CLASS
- See Also:
- Constant Field Values
-
GROUP_CLASS
public static final String GROUP_CLASS
- See Also:
- Constant Field Values
-
ROLE_CLASS
public static final String ROLE_CLASS
- See Also:
- Constant Field Values
-
-