static Optional<SslHandshakeFailure> fromSslHandshakeException(SSLHandshakeException exception) {
        for (SslHandshakeFailure type : values()) {
            if (type.predicate.test(exception)) return Optional.of(type);
        }
        return Optional.empty();
    }
Categorizes instances of {@link SSLHandshakeException}

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SslHandshakeFailure.java