Package org.apache.solr.security.cert
Class CertResolverPattern
java.lang.Object
org.apache.solr.security.cert.CertResolverPattern
Represents a pattern for resolving certificate information, specifying the criteria for
extracting and matching values from certificates.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum defining the types of checks that can be performed on extracted certificate values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getPath()static booleanmatchesPattern(String value, CertResolverPattern pattern) static booleanmatchesPattern(String value, CertResolverPattern.CheckType checkType, Set<String> values) Determines if a given value matches the specified filter values, depending on the check type.
-
Constructor Details
-
CertResolverPattern
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
-
getPath
-
getCheckType
-
getFilterValues
-
matchesPattern
-
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.
-