Class TestDnsNameWithPortValue
java.lang.Object
org.ow2.authzforce.core.pdp.api.value.SimpleValue<V>
org.ow2.authzforce.core.pdp.api.value.StringParseableValue<String>
org.ow2.authzforce.core.pdp.testutil.ext.TestDnsNameWithPortValue
- All Implemented Interfaces:
org.ow2.authzforce.core.pdp.api.value.AttributeValue
,org.ow2.authzforce.core.pdp.api.value.PrimitiveValue
,org.ow2.authzforce.core.pdp.api.value.Value
public final class TestDnsNameWithPortValue
extends org.ow2.authzforce.core.pdp.api.value.StringParseableValue<String>
Represents the dnsName-value datatype from XACML Data Loss Prevention / Network Access Control (DLP/NAC) Profile Version 1.0, Edited by John
Tolbert, Richard Hill, Crystal Hayes, David Brossard, Hal Lockhart, and Steven Legg. 16 February 2015. OASIS Committee Specification 01.
Latest version.
It is basically the same as XACML Core dnsName datatype except that the hostname may use a wildcard as left-most subdomain, and the part after ':' is limited to a port number only.
Used here for testing Authzforce datatype extension mechanism, i.e. plugging a custom simple datatype into the PDP engine.
- Version:
- $Id: $
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
AttributeValue factoryNested classes/interfaces inherited from class org.ow2.authzforce.core.pdp.api.value.SimpleValue
org.ow2.authzforce.core.pdp.api.value.SimpleValue.BaseFactory<AV extends org.ow2.authzforce.core.pdp.api.value.AttributeValue>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.ow2.authzforce.core.pdp.api.value.AttributeDatatype<TestDnsNameWithPortValue>
Data typestatic final TestDnsNameWithPortValue.Factory
Factory singleton instanceFields inherited from class org.ow2.authzforce.core.pdp.api.value.SimpleValue
value
-
Constructor Summary
ConstructorDescriptionReturns a newDNSNameAttributeValue
that represents the name indicated by theString
provided. -
Method Summary
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.StringParseableValue
getXmlAttributes
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.SimpleValue
getContent, getUnderlyingValue, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ow2.authzforce.core.pdp.api.value.PrimitiveValue
getXdmValue
-
Field Details
-
DATATYPE
public static final org.ow2.authzforce.core.pdp.api.value.AttributeDatatype<TestDnsNameWithPortValue> DATATYPEData type -
FACTORY
Factory singleton instance
-
-
Constructor Details
-
TestDnsNameWithPortValue
Returns a newDNSNameAttributeValue
that represents the name indicated by theString
provided.- Parameters:
val
- a string representing the name- Throws:
IllegalArgumentException
- if format ofval
does not comply with the dnsName datatype definition
-
-
Method Details
-
getXdmItem
public net.sf.saxon.s9api.XdmItem getXdmItem() -
getHostName
Returns the host name represented by this object. Used byTestDnsNameValueEqualFunction
- Returns:
- the host name
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.ow2.authzforce.core.pdp.api.value.SimpleValue<String>
-
equals
- Overrides:
equals
in classorg.ow2.authzforce.core.pdp.api.value.SimpleValue<String>
-
printXML
- Specified by:
printXML
in classorg.ow2.authzforce.core.pdp.api.value.SimpleValue<String>
-