クラス Ssl
java.lang.ObjectSE
org.springframework.boot.web.server.Ssl
SSL 構成のための単純なサーバーに依存しない抽象化。
- 導入:
- 2.0.0
- 作成者:
- Andy Wilkinson, Vladimir Tsanev, Stephane Nicoll, Scott Frederick
ネストされたクラスの要約
ネストされたクラスコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明static Ssl特定のバンドル名のSslインスタンスを作成するためのファクトリメソッド。@Nullable StringSE使用する SSL バンドルの名前を返します。@Nullable StringSE証明書の場所を PEM 形式で返します。@Nullable StringSE証明書の秘密鍵の場所を PEM 形式で返します。StringSE @Nullable[]サポートされている SSL 暗号を返します。@Nullable Ssl.ClientAuthクライアント認証が不要("none" )、必要("want" )、必要("need" )のいずれであるかを返します。StringSE @Nullable[]有効な SSL プロトコルを返します。@Nullable StringSEキーストア内のキーを識別するエイリアスを返します。@Nullable StringSEキーストア内のキーにアクセスするために使用されるパスワードを返します。@Nullable StringSESSL 証明書(通常は jks ファイル)を保持するキーストアへのパスを返します。@Nullable StringSEキーストアへのアクセスに使用するパスワードを返します。@Nullable StringSEキーストアのプロバイダーを返します。@Nullable StringSEキーストアの型を返します。使用する SSL プロトコルを返します。SNI 構成の SSL バンドルへのホスト名のマッピングを返します。@Nullable StringSE信頼認証局チェーンの場所を PEM 形式で返します。@Nullable StringSE信頼証明書の秘密鍵の場所を PEM 形式で返します。@Nullable StringSESSL 証明書を保持するトラストストアを返します。@Nullable StringSEトラストストアへのアクセスに使用するパスワードを返します。@Nullable StringSEトラストストアのプロバイダーを返します。@Nullable StringSEトラストストアの型を返します。booleanSSL サポートを有効にするかどうかを返します。static boolean指定されたインスタンスで SSL が有効かどうかを返します。void使用する SSL バンドルの名前を設定します。voidsetCertificate(@Nullable StringSE certificate) voidsetCertificatePrivateKey(@Nullable StringSE certificatePrivateKey) voidsetCiphers(StringSE @Nullable[] ciphers) voidsetClientAuth(@Nullable Ssl.ClientAuth clientAuth) voidsetEnabled(boolean enabled) voidsetEnabledProtocols(StringSE @Nullable[] enabledProtocols) voidsetKeyAlias(@Nullable StringSE keyAlias) voidsetKeyPassword(@Nullable StringSE keyPassword) voidsetKeyStore(@Nullable StringSE keyStore) voidsetKeyStorePassword(@Nullable StringSE keyStorePassword) voidsetKeyStoreProvider(@Nullable StringSE keyStoreProvider) voidsetKeyStoreType(@Nullable StringSE keyStoreType) voidsetProtocol(StringSE protocol) voidsetServerNameBundles(ListSE<Ssl.ServerNameSslBundle> serverNameBundles) voidsetTrustCertificate(@Nullable StringSE trustCertificate) voidsetTrustCertificatePrivateKey(@Nullable StringSE trustCertificatePrivateKey) voidsetTrustStore(@Nullable StringSE trustStore) voidsetTrustStorePassword(@Nullable StringSE trustStorePassword) voidsetTrustStoreProvider(@Nullable StringSE trustStoreProvider) voidsetTrustStoreType(@Nullable StringSE trustStoreType)
コンストラクターの詳細
Ssl
public Ssl()
メソッドの詳細
isEnabled
public boolean isEnabled()SSL サポートを有効にするかどうかを返します。- 戻り値:
- SSL サポートを有効にするかどうか
setEnabled
public void setEnabled(boolean enabled) getBundle
setBundle
使用する SSL バンドルの名前を設定します。- パラメーター:
bundle- SSL バンドル名- 導入:
- 3.1.0
getClientAuth
クライアント認証が不要("none" )、必要("want" )、必要("need" )のいずれであるかを返します。トラストストアが必要です。- 戻り値:
- 使用する
Ssl.ClientAuth
setClientAuth
getCiphers
setCiphers
getEnabledProtocols
setEnabledProtocols
getKeyAlias
setKeyAlias
getKeyPassword
setKeyPassword
getKeyStore
setKeyStore
getKeyStorePassword
setKeyStorePassword
getKeyStoreType
setKeyStoreType
getKeyStoreProvider
setKeyStoreProvider
getTrustStore
setTrustStore
getTrustStorePassword
setTrustStorePassword
getTrustStoreType
setTrustStoreType
getTrustStoreProvider
setTrustStoreProvider
getCertificate
setCertificate
getCertificatePrivateKey
setCertificatePrivateKey
getTrustCertificate
setTrustCertificate
getTrustCertificatePrivateKey
信頼証明書の秘密鍵の場所を PEM 形式で返します。- 戻り値:
- 信頼証明書の秘密鍵の場所
setTrustCertificatePrivateKey
getProtocol
setProtocol
isEnabled
getServerNameBundles
SNI 構成の SSL バンドルへのホスト名のマッピングを返します。- 戻り値:
- ホスト名から SSL バンドルへのマッピング
setServerNameBundles
forBundle