package io.vertx.core.net;
import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.json.JsonObject;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLEngine;
@DataObject
public class JdkSSLEngineOptions extends SSLEngineOptions {
private static Boolean jdkAlpnAvailable;
public static synchronized boolean isAlpnAvailable() {
if (jdkAlpnAvailable == null) {
boolean available = false;
try {
SSLEngine.class.getDeclaredMethod("getApplicationProtocol");
available = true;
} catch (Exception ignore1) {
try {
JdkSSLEngineOptions.class.getClassLoader().loadClass("sun.security.ssl.ALPNExtension");
available = true;
} catch (Exception ignore2) {
}
} finally {
jdkAlpnAvailable = available;
}
}
return jdkAlpnAvailable;
}
public JdkSSLEngineOptions() {
}
public JdkSSLEngineOptions(JsonObject json) {
}
public JdkSSLEngineOptions(JdkSSLEngineOptions that) {
}
public JsonObject toJson() {
return new JsonObject();
}
@Override
public int hashCode() {
return 0;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof JdkSSLEngineOptions)) return false;
return true;
}
@Override
public JdkSSLEngineOptions clone() {
return new JdkSSLEngineOptions();
}
@Override
public JdkSSLEngineOptions copy() {
return new JdkSSLEngineOptions();
}
}