Class AttributeSelectorId

  • All Implemented Interfaces:
    Comparable<AttributeSelectorId>

    public final class AttributeSelectorId
    extends Object
    implements Comparable<AttributeSelectorId>
    AttributeSelector identifier (category, contextSelectorId, path). Why not use AttributeSelector directly? Because we don't care about MustBePresent or Datatype for lookup here. This is used for example as key in a map to retrieve corresponding AttributeValue when it has already been evaluated.

    WARNING: java.net.URI cannot be used here for XACML category and ContextSelectorId, because not equivalent to XML schema anyURI type. Spaces are allowed in XSD anyURI [1], not in java.net.URI.

    [1] http://www.w3.org/TR/xmlschema-2/#anyURI That's why we use String instead.

    • Constructor Detail

      • AttributeSelectorId

        public AttributeSelectorId​(oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeSelectorType attrSelector)
        Creates instance from XACML AttributeSelector
        Parameters:
        attrSelector - attribute selector
    • Method Detail

      • getCategory

        public String getCategory()
        Returns:
        AttributeSelector Category
      • getPath

        public String getPath()
        Returns:
        AttributeSelector Path
      • getContextSelectorId

        public Optional<String> getContextSelectorId()
        Returns:
        AttributeSelector ContextSelectorId
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object