Class CertResolverPattern


  • public class CertResolverPattern
    extends Object
    Represents a pattern for resolving certificate information, specifying the criteria for extracting and matching values from certificates.
    • Constructor Detail

      • CertResolverPattern

        public CertResolverPattern​(String name,
                                   String path,
                                   String checkType,
                                   Set<String> filterValues)
        Constructs a CertResolverPattern with specified parameters.
        Parameters:
        name - The name associated with this pattern.
        path - The certificate field path this pattern applies to.
        checkType - The type of check to perform on extracted values.
        filterValues - The set of values to check against the extracted certificate field.
    • Method Detail

      • getName

        public String getName()
      • getPath

        public String getPath()
      • getFilterValues

        public Set<String> getFilterValues()
      • matchesPattern

        public static boolean matchesPattern​(String value,
                                             CertResolverPattern.CheckType checkType,
                                             Set<String> values)
        Determines if a given value matches the specified filter values, depending on the check type.
        Parameters:
        value - The value to check.
        checkType - The type of check to perform.
        values - The set of values to check against.
        Returns:
        True if the value matches the criteria; false otherwise.