public class ConsumablePolicyHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private com.bea.common.security.service.PolicyConsumerService.PolicyCollectionHandler |
policyCollectionHandler |
Constructor and Description |
---|
ConsumablePolicyHandler(com.bea.common.security.service.PolicyConsumerService.PolicyCollectionHandler handler)
Construct a ConsumablePolicyHandler for common security.
|
Modifier and Type | Method and Description |
---|---|
void |
done()
Signals the completion of the policy set.
|
void |
setPolicy(ConsumableResource resource,
java.lang.String[] roleNames)
Set a policy for the specified resource using the supplied roles names.
|
void |
setUncheckedPolicy(ConsumableResource resource)
Set a policy which always grants access to the specified resource.
|
private com.bea.common.security.service.PolicyConsumerService.PolicyCollectionHandler policyCollectionHandler
public ConsumablePolicyHandler(com.bea.common.security.service.PolicyConsumerService.PolicyCollectionHandler handler)
public void setPolicy(ConsumableResource resource, java.lang.String[] roleNames) throws ConsumptionException
resource
- the ConsumableResource
object to
which the policy applies.roleNames
- a String[]
of role names
that defines the policy.ConsumptionException
- if an error occurs
which signals that the policy could not be consumed.ConsumptionException
public void setUncheckedPolicy(ConsumableResource resource) throws ConsumptionException
resource
- the ConsumableResource
object to
which the policy applies.ConsumptionException
- if an error occurs
which signals that the policy could not be consumed.ConsumptionException
public void done() throws ConsumptionException
ConsumptionException
- if an error occurs
which signals that the policies could not be consumed.ConsumptionException