Class WebServerSslBundle
java.lang.Object
org.springframework.boot.web.server.WebServerSslBundle
- All Implemented Interfaces:
SslBundle
- Since:
- 3.1.0
- Author:
- Scott Frederick, Phillip Webb
-
Field Summary
Fields inherited from interface org.springframework.boot.ssl.SslBundle
DEFAULT_PROTOCOL
-
Method Summary
Modifier and TypeMethodDescriptionstatic SslBundle
static SslBundle
get
(Ssl ssl, SslBundles sslBundles) static SslBundle
get
(Ssl ssl, SslBundles sslBundles, SslStoreProvider sslStoreProvider) Deprecated, for removal: This API element is subject to removal in a future version.getKey()
Return a reference to the key that should be used for this bundle orSslBundleKey.NONE
.ReturnSslOptions
that should be applied when establishing the SSL connection.Return the protocol to use when establishing the connection.Return theSslStoreBundle
that can be used to access this bundle's key and trust stores.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.ssl.SslBundle
createSslContext
-
Method Details
-
getStores
Description copied from interface:SslBundle
Return theSslStoreBundle
that can be used to access this bundle's key and trust stores. -
getKey
Description copied from interface:SslBundle
Return a reference to the key that should be used for this bundle orSslBundleKey.NONE
. -
getOptions
Description copied from interface:SslBundle
ReturnSslOptions
that should be applied when establishing the SSL connection.- Specified by:
getOptions
in interfaceSslBundle
- Returns:
- the options that should be applied
-
getProtocol
Description copied from interface:SslBundle
Return the protocol to use when establishing the connection. Values should be supported bySSLContext.getInstance(String)
.- Specified by:
getProtocol
in interfaceSslBundle
- Returns:
- the SSL protocol
- See Also:
-
getManagers
Description copied from interface:SslBundle
- Specified by:
getManagers
in interfaceSslBundle
- Returns:
- the
SslManagerBundle
instance for this bundle
-
get
- Parameters:
ssl
- the source ssl instance- Returns:
- a
SslBundle
instance - Throws:
NoSuchSslBundleException
- if a bundle lookup fails
-
get
- Parameters:
ssl
- the source ssl instancesslBundles
- the bundles that should be used whenSsl.getBundle()
is set- Returns:
- a
SslBundle
instance - Throws:
NoSuchSslBundleException
- if a bundle lookup fails
-
get
@Deprecated(since="3.1.0", forRemoval=true) public static SslBundle get(Ssl ssl, SslBundles sslBundles, SslStoreProvider sslStoreProvider) Deprecated, for removal: This API element is subject to removal in a future version.since 3.1.0 for removal in 3.3.0 along withSslStoreProvider
- Parameters:
ssl
- the sourceSsl
instancesslBundles
- the bundles that should be used whenSsl.getBundle()
is setsslStoreProvider
- theSslStoreProvider
to use ornull
- Returns:
- a
SslBundle
instance - Throws:
NoSuchSslBundleException
- if a bundle lookup fails
-
SslStoreProvider