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)Exception
XACMLConstants
public JBossXACMLPolicy(InputStream is, JBossPolicyFinder theFinder) throws Exception
is
- Inputstream to the policy fileException
XACMLConstants
public JBossXACMLPolicy(InputStream is, int type) throws Exception
is
- Inputstream to the policy filetype
- type (Policy or PolicySet)Exception
XACMLConstants
public JBossXACMLPolicy(InputStream is, int type, JBossPolicyFinder theFinder) throws Exception
is
- Inputstream to the policy/policyset filetype
- policy or policysettheFinder
- PolicySet processing needs thisException
XACMLConstants
public int getType()
XACMLPolicy
getType
in interface XACMLPolicy
XACMLPolicy.getType()
,
XACMLConstants
public void setEnclosingPolicies(List<XACMLPolicy> policies)
XACMLPolicy
setEnclosingPolicies
in interface XACMLPolicy
policies
- a list of policiesXACMLPolicy.setEnclosingPolicies(List)
public List<XACMLPolicy> getEnclosingPolicies()
XACMLPolicy
getEnclosingPolicies
in interface XACMLPolicy
XACMLPolicy.getEnclosingPolicies()
public <T> T get(String key)
ContextMapOp
get
in interface ContextMapOp
T
- object from the mapkey
- KeyContextMapOp.get(String)
public <T> void set(String key, T obj)
ContextMapOp
set
in interface ContextMapOp
key
- Key for the mapobj
- Object to be placedContextMapOp.set(String, Object)
Copyright © 2023 JBoss by Red Hat. All rights reserved.