java.lang.Object
swim.io.TlsSettings
- All Implemented Interfaces:
Debug
TLS configuration parameters.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Collection<String>
protected final ClientAuth
protected final Collection<String>
protected final SSLContext
-
Constructor Summary
ConstructorDescriptionTlsSettings
(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if theseTlsSettings
can possibly equal someother
object.final Collection<String>
Returns the set of permitted cipher suites for secure socket connections, ornull
if the system defaults should be used.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.final ClientAuth
Returns the authentication requirement for incoming connections.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>
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
static Form<TlsSettings>
form()
Returns the structuralForm
ofTlsSettings
.int
hashCode()
final Collection<String>
Returns the set of permitted secure socket layer protocols, ornull
if the system defaults should be used.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.final SSLContext
Returns the factory used to create secure sockets.sslContext
(SSLContext sslContext) Returns a copy of theseTlsSettings
configured with the givensslContext
for creating secure sockets.static TlsSettings
standard()
Returns the defaultTlsSettings
instance.toString()
toValue()
Returns a structuralValue
representing theseTlsSettings
.
-
Field Details
-
sslContext
-
clientAuth
-
cipherSuites
-
protocols
-
-
Constructor Details
-
TlsSettings
public TlsSettings(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols)
-
-
Method Details
-
sslContext
Returns the factory used to create secure sockets. -
sslContext
Returns a copy of theseTlsSettings
configured with the givensslContext
for creating secure sockets. -
clientAuth
Returns the authentication requirement for incoming connections. -
clientAuth
Returns a copy of theseTlsSettings
configured with the givenclientAuth
authentication requirement for incoming connections. -
cipherSuites
Returns the set of permitted cipher suites for secure socket connections, ornull
if the system defaults should be used. -
cipherSuites
Returns a copy of theseTlsSettings
configured with the given set ofcipherSuites
;cipherSuites
may benull
if the system defaults should be used. -
protocols
Returns the set of permitted secure socket layer protocols, ornull
if the system defaults should be used. -
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
Returns a structuralValue
representing theseTlsSettings
. -
canEqual
Returnstrue
if theseTlsSettings
can possibly equal someother
object. -
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
. -
toString
-
standard
Returns the defaultTlsSettings
instance. -
create
public static TlsSettings create(ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols) -
form
Returns the structuralForm
ofTlsSettings
.
-