Package org.apache.cxf.sts.token.realm
Class CertConstraintsParser
java.lang.Object
org.apache.cxf.sts.token.realm.CertConstraintsParser
This class provides the functionality to match a given X509Certificate against a list of
regular expressions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(X509Certificate cert) voidsetSubjectConstraints(List<String> constraints) Set a list of Strings corresponding to regular expression constraints on the subject DN of a certificate
-
Constructor Details
-
CertConstraintsParser
public CertConstraintsParser()
-
-
Method Details
-
setSubjectConstraints
Set a list of Strings corresponding to regular expression constraints on the subject DN of a certificate -
getCompiledSubjectContraints
-
matches
- Returns:
- true if the certificate's SubjectDN matches the constraints defined in the subject DNConstraints; false, otherwise. The certificate subject DN only has to match ONE of the subject cert constraints (not all).
-