Package org.wildfly.security.authz.jacc
Class JaccDelegatingPolicy
- java.lang.Object
-
- java.security.Policy
-
- org.wildfly.security.authz.jacc.JaccDelegatingPolicy
-
public class JaccDelegatingPolicy extends Policy
A
Policyimplementation 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
SecurityDomainand its identities by configuring aPermissionMapper. 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 authorizedSecurityIdentity.- 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
Constructors Constructor Description JaccDelegatingPolicy()Create a new instance.JaccDelegatingPolicy(Policy delegate)Create a new instance based on the givendelegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionCollectiongetPermissions(CodeSource codeSource)PermissionCollectiongetPermissions(ProtectionDomain domain)booleanimplies(ProtectionDomain domain, Permission permission)voidrefresh()-
Methods inherited from class java.security.Policy
getInstance, getInstance, getInstance, getParameters, getPolicy, getProvider, getType, setPolicy
-
-
-
-
Constructor Detail
-
JaccDelegatingPolicy
public JaccDelegatingPolicy()
Create a new instance. In this case, the current policy will be automatically obtained and used to delegate method calls.
-
JaccDelegatingPolicy
public JaccDelegatingPolicy(Policy delegate)
Create a new instance based on the givendelegate.- Parameters:
delegate- the policy that will be used to delegate method calls
-
-
Method Detail
-
implies
public boolean implies(ProtectionDomain domain, Permission permission)
-
getPermissions
public PermissionCollection getPermissions(ProtectionDomain domain)
- Overrides:
getPermissionsin classPolicy
-
getPermissions
public PermissionCollection getPermissions(CodeSource codeSource)
- Overrides:
getPermissionsin classPolicy
-
-