java.lang.Object
swim.io.TlsSettings
- All Implemented Interfaces:
Debug
TLS configuration parameters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<String>protected final ClientAuthprotected final Collection<String>protected final SSLContext -
Constructor Summary
ConstructorsConstructorDescriptionTlsSettings(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif theseTlsSettingscan possibly equal someotherobject.final Collection<String>Returns the set of permitted cipher suites for secure socket connections, ornullif the system defaults should be used.cipherSuites(Collection<String> cipherSuites) Returns a copy of theseTlsSettingsconfigured with the given set ofcipherSuites;cipherSuitesmay benullif the system defaults should be used.final ClientAuthReturns the authentication requirement for incoming connections.clientAuth(ClientAuth clientAuth) Returns a copy of theseTlsSettingsconfigured with the givenclientAuthauthentication requirement for incoming connections.protected TlsSettingscopy(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols) Returns a newTlsSettingsinstance with the given options.static TlsSettingscreate(ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols) <T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.booleanstatic Form<TlsSettings>form()Returns the structuralFormofTlsSettings.inthashCode()final Collection<String>Returns the set of permitted secure socket layer protocols, ornullif the system defaults should be used.protocols(Collection<String> protocols) Returns a copy of theseTlsSettingsconfigured with the given set ofprotocols;protocolsmay benullif the system defaults should be used.final SSLContextReturns the factory used to create secure sockets.sslContext(SSLContext sslContext) Returns a copy of theseTlsSettingsconfigured with the givensslContextfor creating secure sockets.static TlsSettingsstandard()Returns the defaultTlsSettingsinstance.toString()toValue()Returns a structuralValuerepresenting 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 theseTlsSettingsconfigured with the givensslContextfor creating secure sockets. -
clientAuth
Returns the authentication requirement for incoming connections. -
clientAuth
Returns a copy of theseTlsSettingsconfigured with the givenclientAuthauthentication requirement for incoming connections. -
cipherSuites
Returns the set of permitted cipher suites for secure socket connections, ornullif the system defaults should be used. -
cipherSuites
Returns a copy of theseTlsSettingsconfigured with the given set ofcipherSuites;cipherSuitesmay benullif the system defaults should be used. -
protocols
Returns the set of permitted secure socket layer protocols, ornullif the system defaults should be used. -
protocols
Returns a copy of theseTlsSettingsconfigured with the given set ofprotocols;protocolsmay benullif the system defaults should be used. -
copy
protected TlsSettings copy(SSLContext sslContext, ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols) Returns a newTlsSettingsinstance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings. -
toValue
Returns a structuralValuerepresenting theseTlsSettings. -
canEqual
Returnstrueif theseTlsSettingscan possibly equal someotherobject. -
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
toString
-
standard
Returns the defaultTlsSettingsinstance. -
create
public static TlsSettings create(ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols) -
form
Returns the structuralFormofTlsSettings.
-