public class io.vertx.core.net.SSLOptions extends java.lang.Object
{
public static final boolean DEFAULT_USE_ALPN;
public static final long DEFAULT_SSL_HANDSHAKE_TIMEOUT;
public static final java.util.concurrent.TimeUnit DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT;
public static final java.util.List DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS;
private long sslHandshakeTimeout;
private java.util.concurrent.TimeUnit sslHandshakeTimeoutUnit;
private io.vertx.core.net.KeyCertOptions keyCertOptions;
private io.vertx.core.net.TrustOptions trustOptions;
private java.util.Set enabledCipherSuites;
private java.util.ArrayList crlPaths;
private java.util.ArrayList crlValues;
private boolean useAlpn;
private java.util.Set enabledSecureTransportProtocols;
public void <init>(io.vertx.core.json.JsonObject)
{
io.vertx.core.json.JsonObject v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: io.vertx.core.json.JsonObject;
specialinvoke v.<io.vertx.core.net.SSLOptions: void <init>()>();
staticinvoke <io.vertx.core.net.SSLOptionsConverter: void fromJson(java.lang.Iterable,io.vertx.core.net.SSLOptions)>(v, v);
return;
}
public void <init>()
{
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
specialinvoke v.<java.lang.Object: void <init>()>();
specialinvoke v.<io.vertx.core.net.SSLOptions: void init()>();
return;
}
public void <init>(io.vertx.core.net.SSLOptions)
{
long v;
java.util.ArrayList v, v;
io.vertx.core.net.SSLOptions v, v;
io.vertx.core.net.KeyCertOptions v, v, v;
java.util.LinkedHashSet v, v;
boolean v;
java.util.Set v, v, v, v;
java.util.concurrent.TimeUnit v, v;
io.vertx.core.net.TrustOptions v, v, v;
java.util.List v, v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: io.vertx.core.net.SSLOptions;
specialinvoke v.<java.lang.Object: void <init>()>();
v = v.<io.vertx.core.net.SSLOptions: long sslHandshakeTimeout>;
v.<io.vertx.core.net.SSLOptions: long sslHandshakeTimeout> = v;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit getSslHandshakeTimeoutUnit()>();
if v == null goto label;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit getSslHandshakeTimeoutUnit()>();
goto label;
label:
v = <io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT>;
label:
v.<io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit sslHandshakeTimeoutUnit> = v;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.KeyCertOptions getKeyCertOptions()>();
if v == null goto label;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.KeyCertOptions getKeyCertOptions()>();
v = interfaceinvoke v.<io.vertx.core.net.KeyCertOptions: io.vertx.core.net.KeyCertOptions copy()>();
goto label;
label:
v = null;
label:
v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.KeyCertOptions keyCertOptions> = v;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.TrustOptions getTrustOptions()>();
if v == null goto label;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.TrustOptions getTrustOptions()>();
v = interfaceinvoke v.<io.vertx.core.net.TrustOptions: io.vertx.core.net.TrustOptions copy()>();
goto label;
label:
v = null;
label:
v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.TrustOptions trustOptions> = v;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: java.util.Set getEnabledCipherSuites()>();
if v != null goto label;
v = new java.util.LinkedHashSet;
specialinvoke v.<java.util.LinkedHashSet: void <init>()>();
goto label;
label:
v = new java.util.LinkedHashSet;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: java.util.Set getEnabledCipherSuites()>();
specialinvoke v.<java.util.LinkedHashSet: void <init>(java.util.Collection)>(v);
label:
v.<io.vertx.core.net.SSLOptions: java.util.Set enabledCipherSuites> = v;
v = new java.util.ArrayList;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: java.util.List getCrlPaths()>();
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
v.<io.vertx.core.net.SSLOptions: java.util.ArrayList crlPaths> = v;
v = new java.util.ArrayList;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: java.util.List getCrlValues()>();
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
v.<io.vertx.core.net.SSLOptions: java.util.ArrayList crlValues> = v;
v = v.<io.vertx.core.net.SSLOptions: boolean useAlpn>;
v.<io.vertx.core.net.SSLOptions: boolean useAlpn> = v;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: java.util.Set getEnabledSecureTransportProtocols()>();
if v != null goto label;
v = new java.util.LinkedHashSet;
specialinvoke v.<java.util.LinkedHashSet: void <init>()>();
goto label;
label:
v = new java.util.LinkedHashSet;
v = virtualinvoke v.<io.vertx.core.net.SSLOptions: java.util.Set getEnabledSecureTransportProtocols()>();
specialinvoke v.<java.util.LinkedHashSet: void <init>(java.util.Collection)>(v);
label:
v.<io.vertx.core.net.SSLOptions: java.util.Set enabledSecureTransportProtocols> = v;
return;
}
private void init()
{
java.util.concurrent.TimeUnit v;
java.util.List v;
io.vertx.core.net.SSLOptions v;
java.util.LinkedHashSet v, v;
java.util.ArrayList v, v;
v := @this: io.vertx.core.net.SSLOptions;
v.<io.vertx.core.net.SSLOptions: long sslHandshakeTimeout> = 10L;
v = <io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT>;
v.<io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit sslHandshakeTimeoutUnit> = v;
v = new java.util.LinkedHashSet;
specialinvoke v.<java.util.LinkedHashSet: void <init>()>();
v.<io.vertx.core.net.SSLOptions: java.util.Set enabledCipherSuites> = v;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v.<io.vertx.core.net.SSLOptions: java.util.ArrayList crlPaths> = v;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v.<io.vertx.core.net.SSLOptions: java.util.ArrayList crlValues> = v;
v.<io.vertx.core.net.SSLOptions: boolean useAlpn> = 0;
v = new java.util.LinkedHashSet;
v = <io.vertx.core.net.SSLOptions: java.util.List DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS>;
specialinvoke v.<java.util.LinkedHashSet: void <init>(java.util.Collection)>(v);
v.<io.vertx.core.net.SSLOptions: java.util.Set enabledSecureTransportProtocols> = v;
return;
}
public io.vertx.core.net.KeyCertOptions getKeyCertOptions()
{
io.vertx.core.net.SSLOptions v;
io.vertx.core.net.KeyCertOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v = v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.KeyCertOptions keyCertOptions>;
return v;
}
public io.vertx.core.net.SSLOptions setKeyCertOptions(io.vertx.core.net.KeyCertOptions)
{
io.vertx.core.net.SSLOptions v;
io.vertx.core.net.KeyCertOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: io.vertx.core.net.KeyCertOptions;
v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.KeyCertOptions keyCertOptions> = v;
return v;
}
public io.vertx.core.net.TrustOptions getTrustOptions()
{
io.vertx.core.net.TrustOptions v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v = v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.TrustOptions trustOptions>;
return v;
}
public io.vertx.core.net.SSLOptions setTrustOptions(io.vertx.core.net.TrustOptions)
{
io.vertx.core.net.TrustOptions v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: io.vertx.core.net.TrustOptions;
v.<io.vertx.core.net.SSLOptions: io.vertx.core.net.TrustOptions trustOptions> = v;
return v;
}
public io.vertx.core.net.SSLOptions addEnabledCipherSuite(java.lang.String)
{
java.util.Set v;
java.lang.String v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: java.lang.String;
v = v.<io.vertx.core.net.SSLOptions: java.util.Set enabledCipherSuites>;
interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>(v);
return v;
}
public io.vertx.core.net.SSLOptions removeEnabledCipherSuite(java.lang.String)
{
java.util.Set v;
java.lang.String v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: java.lang.String;
v = v.<io.vertx.core.net.SSLOptions: java.util.Set enabledCipherSuites>;
interfaceinvoke v.<java.util.Set: boolean remove(java.lang.Object)>(v);
return v;
}
public java.util.Set getEnabledCipherSuites()
{
java.util.Set v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v = v.<io.vertx.core.net.SSLOptions: java.util.Set enabledCipherSuites>;
return v;
}
public java.util.List getCrlPaths()
{
io.vertx.core.net.SSLOptions v;
java.util.ArrayList v;
v := @this: io.vertx.core.net.SSLOptions;
v = v.<io.vertx.core.net.SSLOptions: java.util.ArrayList crlPaths>;
return v;
}
public io.vertx.core.net.SSLOptions addCrlPath(java.lang.String) throws java.lang.NullPointerException
{
java.lang.String v;
io.vertx.core.net.SSLOptions v;
java.util.ArrayList v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: java.lang.String;
staticinvoke <java.util.Objects: java.lang.Object requireNonNull(java.lang.Object,java.lang.String)>(v, "No null crl accepted");
v = v.<io.vertx.core.net.SSLOptions: java.util.ArrayList crlPaths>;
virtualinvoke v.<java.util.ArrayList: boolean add(java.lang.Object)>(v);
return v;
}
public java.util.List getCrlValues()
{
io.vertx.core.net.SSLOptions v;
java.util.ArrayList v;
v := @this: io.vertx.core.net.SSLOptions;
v = v.<io.vertx.core.net.SSLOptions: java.util.ArrayList crlValues>;
return v;
}
public io.vertx.core.net.SSLOptions addCrlValue(io.vertx.core.buffer.Buffer) throws java.lang.NullPointerException
{
io.vertx.core.buffer.Buffer v;
io.vertx.core.net.SSLOptions v;
java.util.ArrayList v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: io.vertx.core.buffer.Buffer;
staticinvoke <java.util.Objects: java.lang.Object requireNonNull(java.lang.Object,java.lang.String)>(v, "No null crl accepted");
v = v.<io.vertx.core.net.SSLOptions: java.util.ArrayList crlValues>;
virtualinvoke v.<java.util.ArrayList: boolean add(java.lang.Object)>(v);
return v;
}
public boolean isUseAlpn()
{
io.vertx.core.net.SSLOptions v;
boolean v;
v := @this: io.vertx.core.net.SSLOptions;
v = v.<io.vertx.core.net.SSLOptions: boolean useAlpn>;
return v;
}
public io.vertx.core.net.SSLOptions setUseAlpn(boolean)
{
io.vertx.core.net.SSLOptions v;
boolean v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: boolean;
v.<io.vertx.core.net.SSLOptions: boolean useAlpn> = v;
return v;
}
public java.util.Set getEnabledSecureTransportProtocols()
{
java.util.Set v;
io.vertx.core.net.SSLOptions v;
java.util.LinkedHashSet v;
v := @this: io.vertx.core.net.SSLOptions;
v = new java.util.LinkedHashSet;
v = v.<io.vertx.core.net.SSLOptions: java.util.Set enabledSecureTransportProtocols>;
specialinvoke v.<java.util.LinkedHashSet: void <init>(java.util.Collection)>(v);
return v;
}
public long getSslHandshakeTimeout()
{
long v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v = v.<io.vertx.core.net.SSLOptions: long sslHandshakeTimeout>;
return v;
}
public io.vertx.core.net.SSLOptions setSslHandshakeTimeout(long)
{
byte v;
io.vertx.core.net.SSLOptions v;
long v;
java.lang.IllegalArgumentException v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: long;
v = v cmp 0L;
if v >= 0 goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("sslHandshakeTimeout must be >= 0");
throw v;
label:
v.<io.vertx.core.net.SSLOptions: long sslHandshakeTimeout> = v;
return v;
}
public io.vertx.core.net.SSLOptions setSslHandshakeTimeoutUnit(java.util.concurrent.TimeUnit)
{
java.util.concurrent.TimeUnit v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: java.util.concurrent.TimeUnit;
v.<io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit sslHandshakeTimeoutUnit> = v;
return v;
}
public java.util.concurrent.TimeUnit getSslHandshakeTimeoutUnit()
{
java.util.concurrent.TimeUnit v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v = v.<io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit sslHandshakeTimeoutUnit>;
return v;
}
public io.vertx.core.net.SSLOptions setEnabledSecureTransportProtocols(java.util.Set)
{
java.util.Set v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: java.util.Set;
v.<io.vertx.core.net.SSLOptions: java.util.Set enabledSecureTransportProtocols> = v;
return v;
}
public io.vertx.core.net.SSLOptions addEnabledSecureTransportProtocol(java.lang.String)
{
java.util.Set v;
java.lang.String v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: java.lang.String;
v = v.<io.vertx.core.net.SSLOptions: java.util.Set enabledSecureTransportProtocols>;
interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>(v);
return v;
}
public io.vertx.core.net.SSLOptions removeEnabledSecureTransportProtocol(java.lang.String)
{
java.util.Set v;
java.lang.String v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v := @parameter: java.lang.String;
v = v.<io.vertx.core.net.SSLOptions: java.util.Set enabledSecureTransportProtocols>;
interfaceinvoke v.<java.util.Set: boolean remove(java.lang.Object)>(v);
return v;
}
public io.vertx.core.json.JsonObject toJson()
{
io.vertx.core.json.JsonObject v;
io.vertx.core.net.SSLOptions v;
v := @this: io.vertx.core.net.SSLOptions;
v = new io.vertx.core.json.JsonObject;
specialinvoke v.<io.vertx.core.json.JsonObject: void <init>()>();
staticinvoke <io.vertx.core.net.SSLOptionsConverter: void toJson(io.vertx.core.net.SSLOptions,io.vertx.core.json.JsonObject)>(v, v);
return v;
}
static void <clinit>()
{
java.util.concurrent.TimeUnit v;
java.util.List v, v;
java.lang.String[] v;
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit SECONDS>;
<io.vertx.core.net.SSLOptions: java.util.concurrent.TimeUnit DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT> = v;
v = newarray (java.lang.String)[2];
v[0] = "TLSv.2";
v[1] = "TLSv.3";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = staticinvoke <java.util.Collections: java.util.List unmodifiableList(java.util.List)>(v);
<io.vertx.core.net.SSLOptions: java.util.List DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS> = v;
return;
}
}