/** * Get a List of Strings that corresponds to the issuer regular expression * constraints from a JAXB CertificateConstraintsType */ public static List<String> getIssuerConstraints( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetIssuerDNConstraints()) { DNConstraintsType constraints = certConstraints.getIssuerDNConstraints(); return constraints.getRegularExpression(); } return java.util.Collections.emptyList(); }
/** * Get a (issuer) CertConstrains.Combinator from a JAXB CertificateConstraintsType */ public static CertConstraints.Combinator getIssuerConstraintsCombinator( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetIssuerDNConstraints()) { DNConstraintsType constraints = certConstraints.getIssuerDNConstraints(); if (constraints != null && constraints.isSetCombinator()) { CombinatorType combinator = constraints.getCombinator(); if (combinator == CombinatorType.ANY) { return CertConstraints.Combinator.ANY; } } } return CertConstraints.Combinator.ALL; }
dnct = cct.getIssuerDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
/** * Get a List of Strings that corresponds to the issuer regular expression * constraints from a JAXB CertificateConstraintsType */ public static List<String> getIssuerConstraints( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetIssuerDNConstraints()) { DNConstraintsType constraints = certConstraints.getIssuerDNConstraints(); return constraints.getRegularExpression(); } return java.util.Collections.emptyList(); }
/** * Get a List of Strings that corresponds to the issuer regular expression * constraints from a JAXB CertificateConstraintsType */ public static List<String> getIssuerConstraints( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetIssuerDNConstraints()) { DNConstraintsType constraints = certConstraints.getIssuerDNConstraints(); return constraints.getRegularExpression(); } return java.util.Collections.emptyList(); }
/** * Get a (issuer) CertConstrains.Combinator from a JAXB CertificateConstraintsType */ public static CertConstraints.Combinator getIssuerConstraintsCombinator( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetIssuerDNConstraints()) { DNConstraintsType constraints = certConstraints.getIssuerDNConstraints(); if (constraints != null && constraints.isSetCombinator()) { CombinatorType combinator = constraints.getCombinator(); if (combinator == CombinatorType.ANY) { return CertConstraints.Combinator.ANY; } } } return CertConstraints.Combinator.ALL; }
/** * Get a (issuer) CertConstrains.Combinator from a JAXB CertificateConstraintsType */ public static CertConstraints.Combinator getIssuerConstraintsCombinator( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetIssuerDNConstraints()) { DNConstraintsType constraints = certConstraints.getIssuerDNConstraints(); if (constraints != null && constraints.isSetCombinator()) { CombinatorType combinator = constraints.getCombinator(); if (combinator == CombinatorType.ANY) { return CertConstraints.Combinator.ANY; } } } return CertConstraints.Combinator.ALL; }
dnct = cct.getIssuerDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getIssuerDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getIssuerDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getIssuerDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getIssuerDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getIssuerDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
eq &= equals(certConstraints.getIssuerDNConstraints(), that.certConstraints.getIssuerDNConstraints()); eq &= equals(certConstraints.getSubjectDNConstraints(), that.certConstraints.getSubjectDNConstraints());
hash = hash(hash, certConstraints.getIssuerDNConstraints()); hash = hash(hash, certConstraints.getSubjectDNConstraints());
eq &= equals(certConstraints.getIssuerDNConstraints(), that.certConstraints.getIssuerDNConstraints()); eq &= equals(certConstraints.getSubjectDNConstraints(), that.certConstraints.getSubjectDNConstraints());
eq &= equals(certConstraints.getIssuerDNConstraints(), that.certConstraints.getIssuerDNConstraints()); eq &= equals(certConstraints.getSubjectDNConstraints(), that.certConstraints.getSubjectDNConstraints());
hash = hash(hash, certConstraints.getIssuerDNConstraints()); hash = hash(hash, certConstraints.getSubjectDNConstraints());
public int hashCode() { int hash = disableCNCheck ? 37 : 17; if (sslSocketFactory != null) { hash = hash * 41 + System.identityHashCode(sslSocketFactory); } hash = hash(hash, useHttpsURLConnectionDefaultSslSocketFactory); hash = hash(hash, useHttpsURLConnectionDefaultHostnameVerifier); hash = hash(hash, sslCacheTimeout); hash = hash(hash, secureRandom); hash = hash(hash, protocol); hash = hash(hash, certAlias); hash = hash(hash, provider); for (String cs : ciphersuites) { hash = hash(hash, cs); } hash = hash(hash, keyManagers); hash = hash(hash, trustManagers); if (cipherSuiteFilters != null) { hash = hash(hash, cipherSuiteFilters.getInclude()); hash = hash(hash, cipherSuiteFilters.getExclude()); } if (certConstraints != null) { hash = hash(hash, certConstraints.getIssuerDNConstraints()); hash = hash(hash, certConstraints.getSubjectDNConstraints()); } return hash; } private int hash(int i, Object o) {
public int hashCode() { int hash = disableCNCheck ? 37 : 17; if (sslSocketFactory != null) { hash = hash * 41 + System.identityHashCode(sslSocketFactory); } hash = hash(hash, useHttpsURLConnectionDefaultSslSocketFactory); hash = hash(hash, useHttpsURLConnectionDefaultHostnameVerifier); hash = hash(hash, sslCacheTimeout); hash = hash(hash, secureRandom); hash = hash(hash, protocol); hash = hash(hash, certAlias); hash = hash(hash, provider); for (String cs : ciphersuites) { hash = hash(hash, cs); } hash = hash(hash, keyManagers); hash = hash(hash, trustManagers); if (cipherSuiteFilters != null) { hash = hash(hash, cipherSuiteFilters.getInclude()); hash = hash(hash, cipherSuiteFilters.getExclude()); } if (certConstraints != null) { hash = hash(hash, certConstraints.getIssuerDNConstraints()); hash = hash(hash, certConstraints.getSubjectDNConstraints()); } return hash; } private int hash(int i, Object o) {