boolean isAlwaysTrue() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && predicate.isAlwaysTrue()) return true; } return false; }
boolean isAlwaysTrue() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && ! predicate.isAlwaysTrue()) return false; } return true; }
boolean isAlwaysFalse() { return predicate.isAlwaysTrue(); } }
/** * Push all cipher suites which are matched by the given predicate to the end of the enabled ciphers list. Only * cipher suites which are already enabled will be moved; no cipher suites are added by this transformation. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector pushToEnd(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() || predicate.isAlwaysTrue() ? this : new PushToEndCipherSuiteSelector(this, predicate); }
static CipherSuitePredicate optimize(CipherSuitePredicate predicate) { return predicate.isAlwaysFalse() ? matchFalse() : predicate.isAlwaysTrue() ? matchTrue() : predicate; }
boolean isAlwaysTrue() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && ! predicate.isAlwaysTrue()) return false; } return true; }
boolean isAlwaysTrue() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && ! predicate.isAlwaysTrue()) return false; } return true; }
boolean isAlwaysTrue() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && predicate.isAlwaysTrue()) return true; } return false; }
boolean isAlwaysTrue() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && predicate.isAlwaysTrue()) return true; } return false; }
boolean isAlwaysTrue() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && ! predicate.isAlwaysTrue()) return false; } return true; }
boolean isAlwaysTrue() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && predicate.isAlwaysTrue()) return true; } return false; }
boolean isAlwaysFalse() { return predicate.isAlwaysTrue(); } }
boolean isAlwaysFalse() { return predicate.isAlwaysTrue(); } }
boolean isAlwaysFalse() { return predicate.isAlwaysTrue(); } }
/** * Push all cipher suites which are matched by the given predicate to the end of the enabled ciphers list. Only * cipher suites which are already enabled will be moved; no cipher suites are added by this transformation. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector pushToEnd(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() || predicate.isAlwaysTrue() ? this : new PushToEndCipherSuiteSelector(this, predicate); }
/** * Push all cipher suites which are matched by the given predicate to the end of the enabled ciphers list. Only * cipher suites which are already enabled will be moved; no cipher suites are added by this transformation. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector pushToEnd(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() || predicate.isAlwaysTrue() ? this : new PushToEndCipherSuiteSelector(this, predicate); }
/** * Push all cipher suites which are matched by the given predicate to the end of the enabled ciphers list. Only * cipher suites which are already enabled will be moved; no cipher suites are added by this transformation. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector pushToEnd(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() || predicate.isAlwaysTrue() ? this : new PushToEndCipherSuiteSelector(this, predicate); }
static CipherSuitePredicate optimize(CipherSuitePredicate predicate) { return predicate.isAlwaysFalse() ? matchFalse() : predicate.isAlwaysTrue() ? matchTrue() : predicate; }
static CipherSuitePredicate optimize(CipherSuitePredicate predicate) { return predicate.isAlwaysFalse() ? matchFalse() : predicate.isAlwaysTrue() ? matchTrue() : predicate; }
static CipherSuitePredicate optimize(CipherSuitePredicate predicate) { return predicate.isAlwaysFalse() ? matchFalse() : predicate.isAlwaysTrue() ? matchTrue() : predicate; }