Class SecurityManagerUtil
java.lang.Object
org.apache.activemq.artemis.utils.SecurityManagerUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanThis method tries to match the RolePrincipals in the Subject with the provided Set of Roles and CheckTypestatic ObjectcreateGroupPrincipal(String name, Class cls) static Set<RolePrincipal>getPrincipalsInRole(CheckType checkType, Set<Role> roles, Class rolePrincipalClass) static StringgetUserFromSubject(Subject subject, Class<? extends Principal> principalClass)
-
Constructor Details
-
SecurityManagerUtil
public SecurityManagerUtil()
-
-
Method Details
-
getPrincipalsInRole
-
getUserFromSubject
-
createGroupPrincipal
- Throws:
Exception
-
authorize
public static boolean authorize(Subject subject, Set<Role> roles, CheckType checkType, Class rolePrincipalClass) This method tries to match the RolePrincipals in the Subject with the provided Set of Roles and CheckType
-