| Package | Description |
|---|---|
| software.amazon.awssdk.crt.io |
| Modifier and Type | Method and Description |
|---|---|
static TlsContextOptions |
TlsContextOptions.createDefaultClient()
Helper which creates a default set of TLS options for the current platform
|
static TlsContextOptions |
TlsContextOptions.createDefaultServer()
Helper which creates a default set of TLS options for the current platform
|
static TlsContextOptions |
TlsContextOptions.createWithMtls(String certificate,
String privateKey)
Helper which creates TLS options using a certificate and private key
|
static TlsContextOptions |
TlsContextOptions.createWithMtlsFromPath(String certificatePath,
String privateKeyPath)
Helper which creates TLS options using a certificate and private key
|
static TlsContextOptions |
TlsContextOptions.createWithMtlsPkcs12(String pkcs12Path,
String pkcs12Password)
OSX only - Helper which creates TLS options using PKCS12
|
TlsContextOptions |
TlsContextOptions.withAlpnList(String alpnList)
Sets the ALPN protocols list for any connections using this TlsContext
|
TlsContextOptions |
TlsContextOptions.withCertificateAuthority(String caRoot)
Specifies the certificate authority to use.
|
TlsContextOptions |
TlsContextOptions.withCertificateAuthorityFromPath(String caDirPath,
String caFilePath)
Specifies the certificate authority to use.
|
TlsContextOptions |
TlsContextOptions.withCipherPreference(TlsCipherPreference cipherPref)
Sets the ciphers that the TlsContext will be able to use
|
TlsContextOptions |
TlsContextOptions.withMinimumTlsVersion(TlsContextOptions.TlsVersions version)
Sets the minimum TLS version that the TlsContext will allow.
|
TlsContextOptions |
TlsContextOptions.withMtls(String certificate,
String privateKey)
Enables mutual TLS (mTLS) on this TlsContext
|
TlsContextOptions |
TlsContextOptions.withMtlsFromPath(String certificatePath,
String privateKeyPath)
Enables mutual TLS (mTLS) on this TlsContext
|
TlsContextOptions |
TlsContextOptions.withMtlsPkcs12(String pkcs12Path,
String pkcs12Password)
Apple platforms only, specifies mTLS using PKCS#12
|
TlsContextOptions |
TlsContextOptions.withVerifyPeer()
Enables TLS peer verification of certificates
|
TlsContextOptions |
TlsContextOptions.withVerifyPeer(boolean verify)
Sets whether or not TLS will validate the certificate from the peer.
|
| Constructor and Description |
|---|
ClientTlsContext(TlsContextOptions options)
Creates a new Client TlsContext.
|
ServerTlsContext(TlsContextOptions options)
Creates a new Server TlsContext.
|
TlsContext(TlsContextOptions options)
Creates a new Client TlsContext.
|
Copyright © 2021. All rights reserved.