Package org.wildfly.security.authz.jacc
Class JaccDelegatingPolicy
java.lang.Object
java.security.Policy
org.wildfly.security.authz.jacc.JaccDelegatingPolicy
A Policy implementation that knows how to process JACC permissions.
Elytron's JACC implementation is fully integrated with the Permission Mapping API, which allows users to specify custom permissions
for a SecurityDomain and its identities by configuring a PermissionMapper. In this case,
the permissions are evaluated considering both JACC-specific permissions (as defined by the specs) and also the ones associated with the current
and authorized SecurityIdentity.
- Author:
- Pedro Igor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.security.Policy
Policy.Parameters -
Field Summary
Fields inherited from class java.security.Policy
UNSUPPORTED_EMPTY_COLLECTION -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance.JaccDelegatingPolicy(Policy delegate) Create a new instance based on the givendelegate. -
Method Summary
Modifier and TypeMethodDescriptiongetPermissions(CodeSource codeSource) getPermissions(ProtectionDomain domain) booleanimplies(ProtectionDomain domain, Permission permission) voidrefresh()Methods inherited from class java.security.Policy
getInstance, getInstance, getInstance, getParameters, getPolicy, getProvider, getType, setPolicy
-
Constructor Details
-
JaccDelegatingPolicy
public JaccDelegatingPolicy()Create a new instance. In this case, the current policy will be automatically obtained and used to delegate method calls. -
JaccDelegatingPolicy
Create a new instance based on the givendelegate.- Parameters:
delegate- the policy that will be used to delegate method calls
-
-
Method Details
-
implies
-
getPermissions
- Overrides:
getPermissionsin classPolicy
-
getPermissions
- Overrides:
getPermissionsin classPolicy
-
refresh
public void refresh()
-