/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }