Package org.apache.cxf.transport.https
Class CertConstraints
java.lang.Object
org.apache.cxf.transport.https.CertConstraints
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 -
Constructor Summary
ConstructorsConstructorDescriptionCertConstraints(List<String> subjectConstraints, CertConstraints.Combinator subjectConstraintsCombinator, List<String> issuerConstraints, CertConstraints.Combinator issuerConstraintsCombinator) Create a CertificateConstraints from a CertificateConstraintsType specification -
Method Summary
-
Constructor Details
-
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 Details
-
matches
- 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
-