Apache CXF API

org.apache.cxf.transport.https
Class CertConstraints

java.lang.Object
  extended by 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
static class CertConstraints.Combinator
           
 
Constructor Summary
CertConstraints(List<String> subjectConstraints, CertConstraints.Combinator subjectConstraintsCombinator, List<String> issuerConstraints, CertConstraints.Combinator issuerConstraintsCombinator)
          Create a CertificateConstraints from a CertificateConstraintsType specification
 
Method Summary
 boolean matches(X509Certificate cert)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Apache CXF API

Apache CXF