Package org.apache.solr.security.cert
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCertResolverPattern.CheckTypeEnum defining the types of checks that can be performed on extracted certificate values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CertResolverPattern.CheckTypegetCheckType()Set<String>getFilterValues()StringgetName()StringgetPath()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 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()
-
getCheckType
public CertResolverPattern.CheckType getCheckType()
-
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.
-
-