Package org.apache.cxf.transport.https
Class CertConstraints
- java.lang.Object
-
- org.apache.cxf.transport.https.CertConstraints
-
public class CertConstraints extends Object
This class represents a set of constraints that can be placed on an X.509 certificate, in the form of a regular expression on a SubjectDN or IssuerDN. A CertConstraints object is initialized using a CertificateConstraintsType, which has a definition in schema and is so generated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CertConstraints.Combinator
-
Constructor Summary
Constructors Constructor Description CertConstraints(List<String> subjectConstraints, CertConstraints.Combinator subjectConstraintsCombinator, List<String> issuerConstraints, CertConstraints.Combinator issuerConstraintsCombinator)
Create a CertificateConstraints from a CertificateConstraintsType specification
-
-
-
Constructor Detail
-
CertConstraints
public CertConstraints(List<String> subjectConstraints, CertConstraints.Combinator subjectConstraintsCombinator, List<String> issuerConstraints, CertConstraints.Combinator issuerConstraintsCombinator) throws PatternSyntaxException
Create a CertificateConstraints from a CertificateConstraintsType specification- Throws:
PatternSyntaxException
-
-
Method Detail
-
matches
public boolean matches(X509Certificate cert)
- Returns:
- true if the certificate's SubjectDN matches the constraints defined in the subject DNConstraints and the certificate's IssuerDN matches the issuer DNConstraints; false, otherwise
-
-