Class ResourceMatch


  • @SupportedAll
    public class ResourceMatch
    extends Object
    The class ResourceMatch defines the results of a resource match with respect to Policy.
    • Field Detail

      • EXACT_MATCH

        public static final ResourceMatch EXACT_MATCH
        The EXACT_MATCH specifies the resources are exactly the same.
      • WILDCARD_MATCH

        public static final ResourceMatch WILDCARD_MATCH
        The WILDCARD_MATCH specifies the resources are wildcard match
      • SUB_RESOURCE_MATCH

        public static final ResourceMatch SUB_RESOURCE_MATCH
        The SUB_RESOURCE_MATCH specifies the provided resource is a sub resource.
      • SUPER_RESOURCE_MATCH

        public static final ResourceMatch SUPER_RESOURCE_MATCH
        The SUPER_RESOURCE_MATCH specifies the provided resource is more specific than this resource
      • NO_MATCH

        public static final ResourceMatch NO_MATCH
        The NO_MATCH specifies the resources do not match
      • RESOURCE_COMPARATOR_ONE_LEVEL_WILDCARD

        public static final String RESOURCE_COMPARATOR_ONE_LEVEL_WILDCARD
        See Also:
        Constant Field Values
    • Method Detail

      • toString

        public String toString()
        Method to get string representation of the resource match.
        Overrides:
        toString in class Object
        Returns:
        string representation of the resource match.
      • equals

        public boolean equals​(Object resourceMatch)
        Method to check if two resource match objects are equal.
        Overrides:
        equals in class Object
        Parameters:
        resourceMatch - object to which this object will be compared with
        Returns:
        true if the resources match; false otherwise;
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object