Package | Description |
---|---|
net.jini.security |
Provides mechanisms and abstractions for managing security, especially in the
presence of dynamically downloaded code.
|
net.jini.security.policy |
Provides an interface for security policy providers capable of dynamic
permission grants, an interface for security manager or policy providers
that use custom security context state, and a security policy provider
supporting dynamic permission grants.
|
org.apache.river.api.security |
This package contains a scalable cache based security manager that parallelises
domain security checks.
|
Modifier and Type | Method and Description |
---|---|
static void |
Security.grant(PermissionGrant grant)
Grant permissions contained by the
PermissionGrant to
those implied by the PermissionGrant . |
Modifier and Type | Method and Description |
---|---|
List<PermissionGrant> |
DynamicPolicyProvider.getPermissionGrants(ProtectionDomain domain) |
Modifier and Type | Method and Description |
---|---|
boolean |
DynamicPolicyProvider.grant(PermissionGrant p) |
Modifier and Type | Method and Description |
---|---|
abstract PermissionGrant |
PermissionGrantBuilder.build()
Build the PermissionGrant using information supplied.
|
protected PermissionGrant |
PermissionGrant.decorated() |
protected PermissionGrant |
AbstractPolicy.extractGrantFromPolicy(Policy p,
ProtectionDomain domain) |
Modifier and Type | Method and Description |
---|---|
List<PermissionGrant> |
ScalableNestedPolicy.getPermissionGrants(ProtectionDomain domain)
Returns a new List containing immutable PermissionGrant's, the
List returned is not synchronised and must not be shared with policy
internal state.
|
List<PermissionGrant> |
RemotePolicyProvider.getPermissionGrants(ProtectionDomain domain) |
List<PermissionGrant> |
ConcurrentPolicyFile.getPermissionGrants(ProtectionDomain pd) |
Collection<PermissionGrant> |
PolicyParser.parse(URL location,
Properties system)
Parses a given location, making use of system properties as necessary and
returns a collection of
PermissionGrant 's |
Collection<PermissionGrant> |
DefaultPolicyParser.parse(URL location,
Properties system)
This is the main business method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RevocablePolicy.grant(PermissionGrant p)
A dynamic grant.
|
abstract boolean |
PermissionGrant.impliesEquivalent(PermissionGrant grant)
Checks whether grant logic is identical for the passed in PermissionGrant.
|
void |
RemotePolicyProvider.replace(PermissionGrant[] grants) |
void |
RemotePolicy.replace(PermissionGrant[] policyPermissions)
Replaces the existing RemotePolicy's PermissionGrant's.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractPolicy.checkCallerHasGrants(Collection<PermissionGrant> grants)
This method checks that the PermissionGrant's are authorised to be
granted by it's caller, if it Fails, it will throw a SecurityException
or AccessControlException.
|
protected void |
AbstractPolicy.processGrants(Collection<PermissionGrant> grant,
Class permClass,
boolean stopIfAll,
NavigableSet<Permission> setToAddPerms)
Adds Permission objects contained in PermissionGrant's to a NavigableSet
that is sorted using a PermissionComparator.
|
Constructor and Description |
---|
PermissionGrant(PermissionGrant decorated)
PermissionGrant allows for extension to enable condition or
event based policy decisions. |
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.