/** * Invert the given predicate. * * @param predicate the predicate * @return a predicate which is {@code true} when the nested predicate is {@code false}, and vice-versa */ public static CipherSuitePredicate matchNot(CipherSuitePredicate predicate) { return optimize(new NotCipherSuitePredicate(predicate)); }
/** * Match all of the given predicates. * * @param predicates the predicates * @return a predicate that is {@code true} when all nested predicates are {@code true} */ public static CipherSuitePredicate matchAll(CipherSuitePredicate... predicates) { return optimize(new AndCipherSuitePredicate(predicates)); }
/** * Match any of the given predicates. * * @param predicates the predicates * @return a predicate that is {@code true} when any nested predicate is {@code true} */ public static CipherSuitePredicate matchAny(CipherSuitePredicate... predicates) { return optimize(new OrCipherSuitePredicate(predicates)); }
/** * Return a predicate which matches any of the given authentication schemes. * * @param authentications the authentication schemes * @return the predicate */ public static CipherSuitePredicate matchAuthentication(EnumSet<Authentication> authentications) { return authentications == null || authentications.isEmpty() ? matchFalse() : Authentication.isFull(authentications) ? matchTrue() : optimize(new AuthenticationCipherSuitePredicate(true, authentications)); }
/** * Match any of the given predicates. * * @param predicates the predicates * @return a predicate that is {@code true} when any nested predicate is {@code true} */ public static CipherSuitePredicate matchAny(CipherSuitePredicate... predicates) { return optimize(new OrCipherSuitePredicate(predicates)); }
/** * Match any of the given predicates. * * @param predicates the predicates * @return a predicate that is {@code true} when any nested predicate is {@code true} */ public static CipherSuitePredicate matchAny(CipherSuitePredicate... predicates) { return optimize(new OrCipherSuitePredicate(predicates)); }
/** * Match all of the given predicates. * * @param predicates the predicates * @return a predicate that is {@code true} when all nested predicates are {@code true} */ public static CipherSuitePredicate matchAll(CipherSuitePredicate... predicates) { return optimize(new AndCipherSuitePredicate(predicates)); }
/** * Match all of the given predicates. * * @param predicates the predicates * @return a predicate that is {@code true} when all nested predicates are {@code true} */ public static CipherSuitePredicate matchAll(CipherSuitePredicate... predicates) { return optimize(new AndCipherSuitePredicate(predicates)); }
/** * Invert the given predicate. * * @param predicate the predicate * @return a predicate which is {@code true} when the nested predicate is {@code false}, and vice-versa */ public static CipherSuitePredicate matchNot(CipherSuitePredicate predicate) { return optimize(new NotCipherSuitePredicate(predicate)); }
/** * Match any of the given predicates. * * @param predicates the predicates * @return a predicate that is {@code true} when any nested predicate is {@code true} */ public static CipherSuitePredicate matchAny(CipherSuitePredicate... predicates) { return optimize(new OrCipherSuitePredicate(predicates)); }
/** * Invert the given predicate. * * @param predicate the predicate * @return a predicate which is {@code true} when the nested predicate is {@code false}, and vice-versa */ public static CipherSuitePredicate matchNot(CipherSuitePredicate predicate) { return optimize(new NotCipherSuitePredicate(predicate)); }
/** * Match all of the given predicates. * * @param predicates the predicates * @return a predicate that is {@code true} when all nested predicates are {@code true} */ public static CipherSuitePredicate matchAll(CipherSuitePredicate... predicates) { return optimize(new AndCipherSuitePredicate(predicates)); }
/** * Invert the given predicate. * * @param predicate the predicate * @return a predicate which is {@code true} when the nested predicate is {@code false}, and vice-versa */ public static CipherSuitePredicate matchNot(CipherSuitePredicate predicate) { return optimize(new NotCipherSuitePredicate(predicate)); }
/** * Return a predicate which matches any of the given authentication schemes. * * @param authentications the authentication schemes * @return the predicate */ public static CipherSuitePredicate matchAuthentication(EnumSet<Authentication> authentications) { return authentications == null || authentications.isEmpty() ? matchFalse() : Authentication.isFull(authentications) ? matchTrue() : optimize(new AuthenticationCipherSuitePredicate(true, authentications)); }
/** * Return a predicate which matches any of the given authentication schemes. * * @param authentications the authentication schemes * @return the predicate */ public static CipherSuitePredicate matchAuthentication(EnumSet<Authentication> authentications) { return authentications == null || authentications.isEmpty() ? matchFalse() : Authentication.isFull(authentications) ? matchTrue() : optimize(new AuthenticationCipherSuitePredicate(true, authentications)); }
/** * Return a predicate which matches any of the given authentication schemes. * * @param authentications the authentication schemes * @return the predicate */ public static CipherSuitePredicate matchAuthentication(EnumSet<Authentication> authentications) { return authentications == null || authentications.isEmpty() ? matchFalse() : Authentication.isFull(authentications) ? matchTrue() : optimize(new AuthenticationCipherSuitePredicate(true, authentications)); }