Class CertResolverPattern

java.lang.Object
org.apache.solr.security.cert.CertResolverPattern

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

    • 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 Details

    • getName

      public String getName()
    • getPath

      public String getPath()
    • getCheckType

      public CertResolverPattern.CheckType getCheckType()
    • getFilterValues

      public Set<String> getFilterValues()
    • matchesPattern

      public static boolean matchesPattern(String value, CertResolverPattern pattern)
    • 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.