- java.lang.Object
-
- swim.io.TlsSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>
cipherSuites
protected ClientAuth
clientAuth
protected Collection<String>
protocols
protected SSLContext
sslContext
-
Constructor Summary
Constructors Constructor Description TlsSettings(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(Object other)
Returnstrue
if theseTlsSettings
can possibly equal someother
object.Collection<String>
cipherSuites()
Returns the set of permitted cipher suites for secure socket connections, ornull
if the system defaults should be used.TlsSettings
cipherSuites(Collection<String> cipherSuites)
Returns a copy of theseTlsSettings
configured with the given set ofcipherSuites
;cipherSuites
may benull
if the system defaults should be used.ClientAuth
clientAuth()
Returns the authentication requirement for incoming connections.TlsSettings
clientAuth(ClientAuth clientAuth)
Returns a copy of theseTlsSettings
configured with the givenclientAuth
authentication requirement for incoming connections.protected TlsSettings
copy(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols)
Returns a newTlsSettings
instance with the given options.static TlsSettings
create(ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
static Form<TlsSettings>
form()
Returns the structuralForm
ofTlsSettings
.int
hashCode()
Collection<String>
protocols()
Returns the set of permitted secure socket layer protocols, ornull
if the system defaults should be used.TlsSettings
protocols(Collection<String> protocols)
Returns a copy of theseTlsSettings
configured with the given set ofprotocols
;protocols
may benull
if the system defaults should be used.SSLContext
sslContext()
Returns the factory used to create secure sockets.TlsSettings
sslContext(SSLContext sslContext)
Returns a copy of theseTlsSettings
configured with the givensslContext
for creating secure sockets.static TlsSettings
standard()
Returns the defaultTlsSettings
instance.String
toString()
Value
toValue()
Returns a structuralValue
representing theseTlsSettings
.
-
-
-
Field Detail
-
sslContext
protected final SSLContext sslContext
-
clientAuth
protected final ClientAuth clientAuth
-
cipherSuites
protected final Collection<String> cipherSuites
-
protocols
protected final Collection<String> protocols
-
-
Constructor Detail
-
TlsSettings
public TlsSettings(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols)
-
-
Method Detail
-
sslContext
public final SSLContext sslContext()
Returns the factory used to create secure sockets.
-
sslContext
public TlsSettings sslContext(SSLContext sslContext)
Returns a copy of theseTlsSettings
configured with the givensslContext
for creating secure sockets.
-
clientAuth
public final ClientAuth clientAuth()
Returns the authentication requirement for incoming connections.
-
clientAuth
public TlsSettings clientAuth(ClientAuth clientAuth)
Returns a copy of theseTlsSettings
configured with the givenclientAuth
authentication requirement for incoming connections.
-
cipherSuites
public final Collection<String> cipherSuites()
Returns the set of permitted cipher suites for secure socket connections, ornull
if the system defaults should be used.
-
cipherSuites
public TlsSettings cipherSuites(Collection<String> cipherSuites)
Returns a copy of theseTlsSettings
configured with the given set ofcipherSuites
;cipherSuites
may benull
if the system defaults should be used.
-
protocols
public final Collection<String> protocols()
Returns the set of permitted secure socket layer protocols, ornull
if the system defaults should be used.
-
protocols
public TlsSettings protocols(Collection<String> protocols)
Returns a copy of theseTlsSettings
configured with the given set ofprotocols
;protocols
may benull
if the system defaults should be used.
-
copy
protected TlsSettings copy(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols)
Returns a newTlsSettings
instance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings.
-
toValue
public Value toValue()
Returns a structuralValue
representing theseTlsSettings
.
-
canEqual
public boolean canEqual(Object other)
Returnstrue
if theseTlsSettings
can possibly equal someother
object.
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
standard
public static TlsSettings standard()
Returns the defaultTlsSettings
instance.
-
create
public static TlsSettings create(ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols)
-
form
@Kind public static Form<TlsSettings> form()
Returns the structuralForm
ofTlsSettings
.
-
-