Package org.springframework.boot.ssl
Interface SslOptions
public interface SslOptions
Configuration options that should be applied when establishing an SSL connection.
- Since:
- 3.1.0
- Author:
- Scott Frederick
- See Also:
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionHelper method that provides a null-safe way to convert aString[]to aCollectionfor client libraries to use.String[]Return the ciphers that can be used ornull.String[]Return the protocols that should be enabled ornull.default booleanReturn if any SSL options have been specified.static SslOptionsFactory method to create a newSslOptionsinstance.static SslOptionsFactory method to create a newSslOptionsinstance.
- 
Field Details- 
NONESslOptionsthat returnsnullresults.
 
- 
- 
Method Details- 
isSpecifieddefault boolean isSpecified()Return if any SSL options have been specified.- Returns:
- trueif SSL options have been specified
 
- 
getCiphersString[] getCiphers()Return the ciphers that can be used ornull. The cipher names in this set should be compatible with those supported bySSLEngine.getSupportedCipherSuites().- Returns:
- the ciphers that can be used or null
 
- 
getEnabledProtocolsString[] getEnabledProtocols()Return the protocols that should be enabled ornull. The protocols names in this set should be compatible with those supported bySSLEngine.getSupportedProtocols().- Returns:
- the protocols to enable or null
 
- 
ofFactory method to create a newSslOptionsinstance.- Parameters:
- ciphers- the ciphers
- enabledProtocols- the enabled protocols
- Returns:
- a new SslOptionsinstance
 
- 
ofFactory method to create a newSslOptionsinstance.- Parameters:
- ciphers- the ciphers
- enabledProtocols- the enabled protocols
- Returns:
- a new SslOptionsinstance
 
- 
asSetHelper method that provides a null-safe way to convert aString[]to aCollectionfor client libraries to use.- Parameters:
- array- the array to convert
- Returns:
- a collection or null
 
 
-