boolean isAlwaysFalse() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && ! predicate.isAlwaysFalse()) return false; } return true; } }
boolean isAlwaysFalse() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && predicate.isAlwaysFalse()) return true; } return false; } }
boolean isAlwaysTrue() { return predicate.isAlwaysFalse(); }
/** * Remove all cipher suites which are matched by the given predicate. Matching ciphers may be re-added by a later * rule. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector remove(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() ? this : new RemovingCipherSuiteSelector(this, predicate); }
/** * Add all cipher suites which are matched by the given predicate. The cipher suites are added in a reasonably * logical order. Any suites which are not supported by the underlying socket layer will not be added. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector add(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() ? this : new AddingCipherSuiteSelector(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; }
boolean isAlwaysFalse() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && predicate.isAlwaysFalse()) return true; } return false; } }
boolean isAlwaysFalse() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && ! predicate.isAlwaysFalse()) return false; } return true; } }
boolean isAlwaysFalse() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && ! predicate.isAlwaysFalse()) return false; } return true; } }
boolean isAlwaysFalse() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && predicate.isAlwaysFalse()) return true; } return false; } }
boolean isAlwaysFalse() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && ! predicate.isAlwaysFalse()) return false; } return true; } }
boolean isAlwaysFalse() { for (CipherSuitePredicate predicate : predicates) { if (predicate != null && predicate.isAlwaysFalse()) return true; } return false; } }
/** * Remove all cipher suites which are matched by the given predicate. Matching ciphers may be re-added by a later * rule. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector remove(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() ? this : new RemovingCipherSuiteSelector(this, predicate); }
/** * Add all cipher suites which are matched by the given predicate. The cipher suites are added in a reasonably * logical order. Any suites which are not supported by the underlying socket layer will not be added. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector add(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() ? this : new AddingCipherSuiteSelector(this, predicate); }
/** * Remove all cipher suites which are matched by the given predicate. Matching ciphers may be re-added by a later * rule. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector remove(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() ? this : new RemovingCipherSuiteSelector(this, predicate); }
/** * Add all cipher suites which are matched by the given predicate. The cipher suites are added in a reasonably * logical order. Any suites which are not supported by the underlying socket layer will not be added. * * @param predicate the predicate to match * @return a new selector which includes the new rule */ public CipherSuiteSelector add(final CipherSuitePredicate predicate) { return predicate == null || predicate.isAlwaysFalse() ? this : new AddingCipherSuiteSelector(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); }
/** * 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); }