Class 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 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. http://docs.oasis-open.org/xacml/xacml-3.0-dlp-nac/v1.0/cs01/xacml-3.0-dlp-nac-v1.0-cs01.html. Latest version: http://docs.oasis-open.org/xacml/xacml-3.0-dlp-nac/v1.0/xacml-3.0-dlp-nac-v1.0.html.

    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

      Nested Classes 
      Modifier and Type Class Description
      static class  TestDnsNameWithPortValue.Factory  
      • Nested 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>
    • Constructor Summary

      Constructors 
      Constructor Description
      TestDnsNameWithPortValue​(String val)
      Returns a new DNSNameAttributeValue that represents the name indicated by the String provided.
    • Constructor Detail

      • TestDnsNameWithPortValue

        public TestDnsNameWithPortValue​(String val)
                                 throws IllegalArgumentException
        Returns a new DNSNameAttributeValue that represents the name indicated by the String provided.
        Parameters:
        val - a string representing the name
        Throws:
        IllegalArgumentException - if format of val does not comply with the dnsName datatype definition
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.ow2.authzforce.core.pdp.api.value.SimpleValue<String>
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class org.ow2.authzforce.core.pdp.api.value.SimpleValue<String>
      • printXML

        public String printXML()
        Specified by:
        printXML in class org.ow2.authzforce.core.pdp.api.value.SimpleValue<String>