public class PolicyMetaData extends Object
Modifier and Type | Field and Description |
---|---|
static int |
XACML_DEFAULT_VERSION
The default version of XACML, 1.0, used if no namespace string is specified
|
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(String xacmlVersion,
String xpathVersion)
Creates a
PolicyMetaData instance with the given parameters. |
Modifier and Type | Method and Description |
---|---|
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 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. 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 selectorspublic PolicyMetaData(String xacmlVersion, String xpathVersion)
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)
the XACML policy, if null use default factoriesIllegalArgumentException
- if the identifier strings are unknownpublic int getXACMLVersion()
public String getXACMLIdentifier()
public int getXPathVersion()
public String getXPathIdentifier()
Copyright © 2021 WSO2. All rights reserved.