/** * Get a List of Strings that corresponds to the subject regular expression * constraints from a JAXB CertificateConstraintsType */ public static List<String> getSubjectConstraints( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetSubjectDNConstraints()) { DNConstraintsType constraints = certConstraints.getSubjectDNConstraints(); return constraints.getRegularExpression(); } return java.util.Collections.emptyList(); }
/** * Get a (subject) CertConstrains.Combinator from a JAXB CertificateConstraintsType */ public static CertConstraints.Combinator getSubjectConstraintsCombinator( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetSubjectDNConstraints()) { DNConstraintsType constraints = certConstraints.getSubjectDNConstraints(); if (constraints != null && constraints.isSetCombinator()) { CombinatorType combinator = constraints.getCombinator(); if (combinator == CombinatorType.ANY) { return CertConstraints.Combinator.ANY; } } } return CertConstraints.Combinator.ALL; }
dnct = cct.getSubjectDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
/** * Get a List of Strings that corresponds to the subject regular expression * constraints from a JAXB CertificateConstraintsType */ public static List<String> getSubjectConstraints( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetSubjectDNConstraints()) { DNConstraintsType constraints = certConstraints.getSubjectDNConstraints(); return constraints.getRegularExpression(); } return java.util.Collections.emptyList(); }
/** * Get a List of Strings that corresponds to the subject regular expression * constraints from a JAXB CertificateConstraintsType */ public static List<String> getSubjectConstraints( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetSubjectDNConstraints()) { DNConstraintsType constraints = certConstraints.getSubjectDNConstraints(); return constraints.getRegularExpression(); } return java.util.Collections.emptyList(); }
/** * Get a (subject) CertConstrains.Combinator from a JAXB CertificateConstraintsType */ public static CertConstraints.Combinator getSubjectConstraintsCombinator( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetSubjectDNConstraints()) { DNConstraintsType constraints = certConstraints.getSubjectDNConstraints(); if (constraints != null && constraints.isSetCombinator()) { CombinatorType combinator = constraints.getCombinator(); if (combinator == CombinatorType.ANY) { return CertConstraints.Combinator.ANY; } } } return CertConstraints.Combinator.ALL; }
/** * Get a (subject) CertConstrains.Combinator from a JAXB CertificateConstraintsType */ public static CertConstraints.Combinator getSubjectConstraintsCombinator( CertificateConstraintsType certConstraints ) { if (certConstraints != null && certConstraints.isSetSubjectDNConstraints()) { DNConstraintsType constraints = certConstraints.getSubjectDNConstraints(); if (constraints != null && constraints.isSetCombinator()) { CombinatorType combinator = constraints.getCombinator(); if (combinator == CombinatorType.ANY) { return CertConstraints.Combinator.ANY; } } } return CertConstraints.Combinator.ALL; }
dnct = cct.getSubjectDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getSubjectDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getSubjectDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getSubjectDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getSubjectDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
dnct = cct.getSubjectDNConstraints(); if (dnct == null) { dnct = new DNConstraintsType();
eq &= equals(certConstraints.getIssuerDNConstraints(), that.certConstraints.getIssuerDNConstraints()); eq &= equals(certConstraints.getSubjectDNConstraints(), that.certConstraints.getSubjectDNConstraints()); } else { eq = false;
eq &= equals(certConstraints.getIssuerDNConstraints(), that.certConstraints.getIssuerDNConstraints()); eq &= equals(certConstraints.getSubjectDNConstraints(), that.certConstraints.getSubjectDNConstraints()); } else { eq = false;
hash = hash(hash, certConstraints.getSubjectDNConstraints());
eq &= equals(certConstraints.getIssuerDNConstraints(), that.certConstraints.getIssuerDNConstraints()); eq &= equals(certConstraints.getSubjectDNConstraints(), that.certConstraints.getSubjectDNConstraints()); } else { eq = false;
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) {