public class JBossXACMLPolicy extends Object implements XACMLPolicy, ContextMapOp
POLICY, POLICYSET| Constructor and Description |
|---|
JBossXACMLPolicy(InputStream is,
int type)
Construct a JBossXACMLPolicy
|
JBossXACMLPolicy(InputStream is,
int type,
JBossPolicyFinder theFinder)
Construct a JBossXACMLPolicy instance
|
JBossXACMLPolicy(InputStream is,
JBossPolicyFinder theFinder)
Construct a JBossXACMLPolicy
|
JBossXACMLPolicy(URL url,
int type)
Construct a JBossXACMLPolicy
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String key)
Get an element from the map
|
List<XACMLPolicy> |
getEnclosingPolicies()
Return the enclosing policies for a PolicySet
|
int |
getType()
Return a type (PolicySet or Policy)
|
<T> void |
set(String key,
T obj)
Set an object on the map
|
void |
setEnclosingPolicies(List<XACMLPolicy> policies)
A PolicySet can contain policies within.
|
public JBossXACMLPolicy(URL url, int type) throws Exception
url - url to the policy filetype - type (Policy or PolicySet)ExceptionXACMLConstantspublic JBossXACMLPolicy(InputStream is, JBossPolicyFinder theFinder) throws Exception
is - Inputstream to the policy fileExceptionXACMLConstantspublic JBossXACMLPolicy(InputStream is, int type) throws Exception
is - Inputstream to the policy filetype - type (Policy or PolicySet)ExceptionXACMLConstantspublic JBossXACMLPolicy(InputStream is, int type, JBossPolicyFinder theFinder) throws Exception
is - Inputstream to the policy/policyset filetype - policy or policysettheFinder - PolicySet processing needs thisExceptionXACMLConstantspublic int getType()
XACMLPolicygetType in interface XACMLPolicyXACMLPolicy.getType(),
XACMLConstantspublic void setEnclosingPolicies(List<XACMLPolicy> policies)
XACMLPolicysetEnclosingPolicies in interface XACMLPolicypolicies - a list of policiesXACMLPolicy.setEnclosingPolicies(List)public List<XACMLPolicy> getEnclosingPolicies()
XACMLPolicygetEnclosingPolicies in interface XACMLPolicyXACMLPolicy.getEnclosingPolicies()public <T> T get(String key)
ContextMapOpget in interface ContextMapOpT - object from the mapkey - KeyContextMapOp.get(String)public <T> void set(String key, T obj)
ContextMapOpset in interface ContextMapOpkey - Key for the mapobj - Object to be placedContextMapOp.set(String, Object)Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.