public class PolicyMetaData extends Object
Modifier and Type | Field and Description |
---|---|
static String |
XACML_1_0_IDENTIFIER
XACML 1.0 identifier
|
static String |
XACML_2_0_IDENTIFIER
XACML 2.0 identifier
|
static int |
XACML_DEFAULT_VERSION
The default version of XACML, 1.0, used if no namespace string
is specified
|
static int |
XACML_VERSION_1_0
Version identifier for XACML 1.0
|
static int |
XACML_VERSION_1_1
Version identifier for XACML 1.1 (which isn't a formal release
so has no namespace string, but still exists as a separate
specification)
|
static int |
XACML_VERSION_2_0
Version identifier for XACML 1.2
|
static String |
XPATH_1_0_IDENTIFIER
XPath 1.0 identifier
|
static int |
XPATH_VERSION_1_0
Version identifier for XPath 1.0
|
static int |
XPATH_VERSION_UNSPECIFIED
Version identifier for an unspecified version of XPath
|
Constructor and Description |
---|
PolicyMetaData()
Creates a
PolicyMetaData instance with all the parameters
set to their default values. |
PolicyMetaData(int xacmlVersion,
int xpathVersion)
Creates a
PolicyMetaData instance with the given
parameters. |
PolicyMetaData(int xacmlVersion,
int xpathVersion,
AttributeFactoryProxy attributeFactoryProxy,
CombiningAlgFactoryProxy combiningAlgFactoryProxy,
FunctionFactoryProxy functionFactoryProxy)
Creates a
PolicyMetaData instance with the given
parameters. |
PolicyMetaData(String xacmlVersion,
String xpathVersion)
Creates a
PolicyMetaData instance with the given
parameters. |
PolicyMetaData(String xacmlVersion,
String xpathVersion,
AttributeFactoryProxy attributeFactoryProxy,
CombiningAlgFactoryProxy combiningAlgFactoryProxy,
FunctionFactoryProxy functionFactoryProxy)
Creates a
PolicyMetaData instance with the given
parameters. |
Modifier and Type | Method and Description |
---|---|
AttributeFactory |
getAttributeFactory()
Returns the
AttributeFactory used by the associated
policy. |
CombiningAlgFactory |
getCombiningAlgFactory()
Returns the
CombiningAlgFactory used by the associated
policy. |
FunctionFactory |
getConditionFunctionFactory()
Returns the Condition
FunctionFactory used by the
associated policy. |
FunctionFactory |
getGeneralFunctionFactory()
Returns the General
FunctionFactory used by the associated
policy. |
FunctionFactory |
getTargetFunctionFactory()
Returns the Target
FunctionFactory used by the associated
policy. |
String |
getXACMLIdentifier()
Returns the identifier string for the specified version of XACML.
|
int |
getXACMLVersion()
Returns which version of XACML is specified in this meta-data.
|
String |
getXPathIdentifier()
Returns the identifier string for the specified version of XPath, or
null if no version is specified.
|
int |
getXPathVersion()
Returns which version of XPath is specified in this meta-data.
|
public static final String XACML_1_0_IDENTIFIER
public static final String XACML_2_0_IDENTIFIER
public static final int XACML_VERSION_1_0
public static final int XACML_VERSION_1_1
public static final int XACML_VERSION_2_0
public static final int XACML_DEFAULT_VERSION
public static final String XPATH_1_0_IDENTIFIER
public static final int XPATH_VERSION_UNSPECIFIED
public static final int XPATH_VERSION_1_0
public PolicyMetaData()
PolicyMetaData
instance with all the parameters
set to their default values.public PolicyMetaData(int xacmlVersion, int xpathVersion)
PolicyMetaData
instance with the given
parameters. The default factories are assumed.xacmlVersion
- the version of XACML used in a policyxpathVersion
- the XPath version to use in any selectorspublic PolicyMetaData(String xacmlVersion, String xpathVersion)
PolicyMetaData
instance with the given
parameters. The default factories are assumed.xacmlVersion
- the version of XACML used in a policyxpathVersion
- the XPath version to use in any selectors, or
null if this is unspecified (ie, not supplied in
the defaults section of the policy)IllegalArgumentException
- if the identifier strings are unknownpublic PolicyMetaData(int xacmlVersion, int xpathVersion, AttributeFactoryProxy attributeFactoryProxy, CombiningAlgFactoryProxy combiningAlgFactoryProxy, FunctionFactoryProxy functionFactoryProxy)
PolicyMetaData
instance with the given
parameters. A proxy value of null implies the default factory.xacmlVersion
- the version of XACML used in a policyxpathVersion
- the XPath version to use in any selectorsattributeFactoryProxy
- combiningAlgFactoryProxy
- functionFactoryProxy
- public PolicyMetaData(String xacmlVersion, String xpathVersion, AttributeFactoryProxy attributeFactoryProxy, CombiningAlgFactoryProxy combiningAlgFactoryProxy, FunctionFactoryProxy functionFactoryProxy)
PolicyMetaData
instance with the given
parameters.xacmlVersion
- the version of XACML used in a policyxpathVersion
- the XPath version to use in any selectors, or
null if this is unspecified (ie, not supplied in
the defaults section of the policy)IllegalArgumentException
- if the identifier strings are unknownpublic int getXACMLVersion()
public String getXACMLIdentifier()
public int getXPathVersion()
public String getXPathIdentifier()
public AttributeFactory getAttributeFactory()
AttributeFactory
used by the associated
policy.AttributeFactory
public CombiningAlgFactory getCombiningAlgFactory()
CombiningAlgFactory
used by the associated
policy.CombiningAlgFactory
public FunctionFactory getTargetFunctionFactory()
FunctionFactory
used by the associated
policy.FunctionFactory
public FunctionFactory getConditionFunctionFactory()
FunctionFactory
used by the
associated policy.FunctionFactory
public FunctionFactory getGeneralFunctionFactory()
FunctionFactory
used by the associated
policy.FunctionFactory
Copyright © 2023 JBoss by Red Hat. All rights reserved.