Package org.kie.kogito.auth
Class SecurityPolicy
java.lang.Object
org.kie.kogito.auth.SecurityPolicy
- All Implemented Interfaces:
Policy
Security policy that delivers
IdentityProvider to allow to security
related policy enforcement.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenforce(KogitoWorkItem workItem) enforce the policy over this work item handlergetRoles()getUser()static SecurityPolicyof(String name, Collection<String> roles) Creates new SecurityPolicy for given name, rolesstatic SecurityPolicyof(IdentityProvider identity) Creates new SecurityPolicy for given identity providertoString()
-
Constructor Details
-
SecurityPolicy
-
-
Method Details
-
of
Creates new SecurityPolicy for given name, roles -
of
Creates new SecurityPolicy for given identity provider- Parameters:
identity- non null identity provider- Returns:
- new instance of SecurityPolicy
-
getUser
-
getRoles
-
enforce
Description copied from interface:Policyenforce the policy over this work item handler -
toString
-