- java.lang.Object
-
- swim.io.TlsSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>cipherSuitesprotected ClientAuthclientAuthprotected Collection<String>protocolsprotected SSLContextsslContext
-
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 booleancanEqual(Object other)Returnstrueif theseTlsSettingscan possibly equal someotherobject.Collection<String>cipherSuites()Returns the set of permitted cipher suites for secure socket connections, ornullif the system defaults should be used.TlsSettingscipherSuites(Collection<String> cipherSuites)Returns a copy of theseTlsSettingsconfigured with the given set ofcipherSuites;cipherSuitesmay benullif the system defaults should be used.ClientAuthclientAuth()Returns the authentication requirement for incoming connections.TlsSettingsclientAuth(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>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)static Form<TlsSettings>form()Returns the structuralFormofTlsSettings.inthashCode()Collection<String>protocols()Returns the set of permitted secure socket layer protocols, ornullif the system defaults should be used.TlsSettingsprotocols(Collection<String> protocols)Returns a copy of theseTlsSettingsconfigured with the given set ofprotocols;protocolsmay benullif the system defaults should be used.SSLContextsslContext()Returns the factory used to create secure sockets.TlsSettingssslContext(SSLContext sslContext)Returns a copy of theseTlsSettingsconfigured with the givensslContextfor creating secure sockets.static TlsSettingsstandard()Returns the defaultTlsSettingsinstance.StringtoString()ValuetoValue()Returns a structuralValuerepresenting 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 theseTlsSettingsconfigured with the givensslContextfor 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 theseTlsSettingsconfigured with the givenclientAuthauthentication requirement for incoming connections.
-
cipherSuites
public final Collection<String> cipherSuites()
Returns the set of permitted cipher suites for secure socket connections, ornullif the system defaults should be used.
-
cipherSuites
public TlsSettings cipherSuites(Collection<String> cipherSuites)
Returns a copy of theseTlsSettingsconfigured with the given set ofcipherSuites;cipherSuitesmay benullif the system defaults should be used.
-
protocols
public final Collection<String> protocols()
Returns the set of permitted secure socket layer protocols, ornullif the system defaults should be used.
-
protocols
public TlsSettings protocols(Collection<String> 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
public Value toValue()
Returns a structuralValuerepresenting theseTlsSettings.
-
canEqual
public boolean canEqual(Object other)
Returnstrueif theseTlsSettingscan possibly equal someotherobject.
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
standard
public static TlsSettings standard()
Returns the defaultTlsSettingsinstance.
-
create
public static TlsSettings create(ClientAuth clientAuth, Collection<String> cipherSuites, Collection<String> protocols)
-
form
@Kind public static Form<TlsSettings> form()
Returns the structuralFormofTlsSettings.
-
-