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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
Apache CXF