SslContext which uses JDK's SSL/TLS implementation.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final JdkApplicationProtocolNegotiator | apn
Deprecated
as a consequence of
JdkApplicationProtocolNegotiator being deprecated.
|
| private final String[] | |
| private final ClientAuth | |
| private static final List | |
| private static final List | |
| private static final String[] | |
| private static final Provider | |
| private final boolean | |
| private static final InternalLogger | |
| pack-priv static final String | |
| private final String[] | |
| private final SSLContext | |
| private static final Set | |
| private static final Set | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | JdkSslContext(SSLContext
the sslContext, boolean SSLContext to use.true if this context should create SSLEngines for client-side usage.the clientAuth)ClientAuth to use. This will only be used when {@param isClient} is false.
Deprecated
Use
Creates a new JdkSslContext(SSLContext, boolean, Iterable, CipherSuiteFilter,
ApplicationProtocolConfig, ClientAuth, String[], boolean)
JdkSslContext from a pre-configured SSLContext.
|
| public | JdkSslContext(SSLContext
the sslContext, boolean SSLContext to use.true if this context should create SSLEngines for client-side usage.the ciphers to use or ciphers, CipherSuiteFilter null if the standard should be used.the filter to use. cipherFilter, ApplicationProtocolConfig the apn, ClientAuth ApplicationProtocolConfig to use.the clientAuth)ClientAuth to use. This will only be used when {@param isClient} is false.
Deprecated
Use
Creates a new JdkSslContext(SSLContext, boolean, Iterable, CipherSuiteFilter,
ApplicationProtocolConfig, ClientAuth, String[], boolean)
JdkSslContext from a pre-configured SSLContext.
|
| public | JdkSslContext(SSLContext
the sslContext, boolean SSLContext to use.true if this context should create SSLEngines for client-side usage.the ciphers to use or ciphers, CipherSuiteFilter null if the standard should be used.the filter to use. cipherFilter, ApplicationProtocolConfig the apn, ClientAuth ApplicationProtocolConfig to use.the clientAuth, String[] ClientAuth to use. This will only be used when {@param isClient} is false.the protocols to enable, or protocols, boolean null to enable the default protocols.true if the first write request shouldn't be encryptedCreates a new |
| pack-priv | JdkSslContext(SSLContext sslContext, boolean isClient, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, ClientAuth clientAuth, String[] protocols, boolean startTls)
Deprecated
as a consequence of
JdkApplicationProtocolNegotiator being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public final JdkApplicationProtocolNegotiator | applicationProtocolNegotiator()
Implements abstract io.
Deprecated
as a consequence of
Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.
JdkApplicationProtocolNegotiator being deprecated.
|
| pack-priv static KeyManagerFactory | Returns: AKeyManagerFactory based upon a key file, key file password, and a certificate chain.an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, KeyManagerFactory keyFile.
null if it's not password-protected.The existing kmf, String KeyManagerFactory that will be used if not nullthe keyStore)KeyStore that should be used in the KeyManagerFactoryBuild a |
| protected static KeyManagerFactory | Returns: AKeyManagerFactory based upon a key file, key file password, and a certificate chain.an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, KeyManagerFactory keyFile.
null if it's not password-protected.The existing kmf)KeyManagerFactory that will be used if not null
Deprecated
will be removed.
Build a KeyManagerFactory based upon a key file, key file password, and a certificate chain.
|
| pack-priv static KeyManagerFactory | Returns: AKeyManagerFactory based upon a key algorithm, key file, key file password,
and a certificate chain.an X.509 certificate chain file in PEM format certChainFile, String the standard name of the requested algorithm. See the Java Secure Socket Extension
Reference Guide for information about standard algorithm names. keyAlgorithm, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, KeyManagerFactory keyFile.
null if it's not password-protected.The existing kmf, String KeyManagerFactory that will be used if not nullthe keyStore)KeyStore that should be used in the KeyManagerFactoryBuild a |
| protected static KeyManagerFactory | Returns: AKeyManagerFactory based upon a key algorithm, key file, key file password,
and a certificate chain.an buildKeyManagerFactory X.509 certificate chain file in PEM format certChainFile, String the standard name of the requested algorithm. See the Java Secure Socket Extension
Reference Guide for information about standard algorithm names. keyAlgorithm, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, KeyManagerFactory keyFile.
null if it's not password-protected.The existing kmf)KeyManagerFactory that will be used if not null
Deprecated
will be removed.
Build a KeyManagerFactory based upon a key algorithm, key file, key file password,
and a certificate chain.
|
| public final List | cipherSuites()
Implements abstract io. |
| private SSLEngine | |
| public final SSLContext | |
| private static List | |
| private static String[] | |
| public final boolean | isClient()
Implements abstract io. true if and only if this context is for client-side.
|
| private static boolean | |
| public final SSLEngine | newEngine(BufferAllocator alloc)
Implements abstract io. SSLEngine.
|
| public final SSLEngine | newEngine(BufferAllocator alloc, String
the non-authoritative name of the host peerHost, int the non-authoritative port peerPort)Implements abstract io. SSLEngine using advisory peer information.
|
| public final SSLSessionContext | sessionContext()
Implements abstract io. SSLSessionContext object held by this context.
|
| private static Set | |
| pack-priv static JdkApplicationProtocolNegotiator | Returns: The results of the translationThe configuration which defines the translation config, boolean true if a server false otherwise.
Deprecated
as a consequence of
Translate a JdkApplicationProtocolNegotiator being deprecated.
ApplicationProtocolConfig object to a JdkApplicationProtocolNegotiator object.
|
| apn | back to summary |
|---|---|
| private final JdkApplicationProtocolNegotiator apn
Deprecated as a consequence of
| |
| cipherSuites | back to summary |
|---|---|
| private final String[] cipherSuites | |
| clientAuth | back to summary |
|---|---|
| private final ClientAuth clientAuth | |
| DEFAULT_CIPHERS | back to summary |
|---|---|
| private static final List<String> DEFAULT_CIPHERS | |
| DEFAULT_CIPHERS_NON_TLSV13 | back to summary |
|---|---|
| private static final List<String> DEFAULT_CIPHERS_NON_TLSV13 | |
| DEFAULT_PROTOCOLS | back to summary |
|---|---|
| private static final String[] DEFAULT_PROTOCOLS | |
| DEFAULT_PROVIDER | back to summary |
|---|---|
| private static final Provider DEFAULT_PROVIDER | |
| isClient | back to summary |
|---|---|
| private final boolean isClient | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| PROTOCOL | back to summary |
|---|---|
| pack-priv static final String PROTOCOL | |
| protocols | back to summary |
|---|---|
| private final String[] protocols | |
| sslContext | back to summary |
|---|---|
| private final SSLContext sslContext | |
| SUPPORTED_CIPHERS | back to summary |
|---|---|
| private static final Set<String> SUPPORTED_CIPHERS | |
| SUPPORTED_CIPHERS_NON_TLSV13 | back to summary |
|---|---|
| private static final Set<String> SUPPORTED_CIPHERS_NON_TLSV13 | |
| unmodifiableCipherSuites | back to summary |
|---|---|
| private final List<String> unmodifiableCipherSuites | |
| JdkSslContext | back to summary |
|---|---|
| public JdkSslContext(SSLContext sslContext, boolean isClient, ClientAuth clientAuth) throws Exception
Deprecated Creates a new
| |
| JdkSslContext | back to summary |
|---|---|
| public JdkSslContext(SSLContext sslContext, boolean isClient, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, ClientAuth clientAuth) throws Exception
Deprecated Creates a new
| |
| JdkSslContext | back to summary |
|---|---|
| public JdkSslContext(SSLContext sslContext, boolean isClient, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, ClientAuth clientAuth, String[] protocols, boolean startTls) throws Exception Creates a new
| |
| JdkSslContext | back to summary |
|---|---|
| pack-priv JdkSslContext(SSLContext sslContext, boolean isClient, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, ClientAuth clientAuth, String[] protocols, boolean startTls) throws Exception
Deprecated as a consequence of
| |
| applicationProtocolNegotiator | back to summary |
|---|---|
| public final JdkApplicationProtocolNegotiator applicationProtocolNegotiator() Implements abstract io. Doc from io. Deprecated as a consequence of Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.
| |
| buildKeyManagerFactory | back to summary |
|---|---|
| pack-priv static KeyManagerFactory buildKeyManagerFactory(File certChainFile, File keyFile, String keyPassword, KeyManagerFactory kmf, String keyStore) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, InvalidAlgorithmParameterException, CertificateException, KeyException, IOException Build a
| |
| buildKeyManagerFactory | back to summary |
|---|---|
| protected static KeyManagerFactory buildKeyManagerFactory(File certChainFile, File keyFile, String keyPassword, KeyManagerFactory kmf) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, InvalidAlgorithmParameterException, CertificateException, KeyException, IOException
Deprecated will be removed. Build a
| |
| buildKeyManagerFactory | back to summary |
|---|---|
| pack-priv static KeyManagerFactory buildKeyManagerFactory(File certChainFile, String keyAlgorithm, File keyFile, String keyPassword, KeyManagerFactory kmf, String keyStore) throws KeyStoreException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, InvalidAlgorithmParameterException, IOException, CertificateException, KeyException, UnrecoverableKeyException Build a
| |
| buildKeyManagerFactory | back to summary |
|---|---|
| protected static KeyManagerFactory buildKeyManagerFactory(File certChainFile, String keyAlgorithm, File keyFile, String keyPassword, KeyManagerFactory kmf) throws KeyStoreException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, InvalidAlgorithmParameterException, IOException, CertificateException, KeyException, UnrecoverableKeyException
Deprecated will be removed. Build a
| |
| cipherSuites | back to summary |
|---|---|
| public final List Implements abstract io. Doc from io. Returns the list of enabled cipher suites, in the order of preference.
| |
| configureAndWrapEngine | back to summary |
|---|---|
private SSLEngine configureAndWrapEngine(SSLEngine engine, BufferAllocator alloc)
| |
| context | back to summary |
|---|---|
| public final SSLContext context() Returns the JDK | |
| defaultCiphers | back to summary |
|---|---|
| private static List | |
| defaultProtocols | back to summary |
|---|---|
| private static String[] defaultProtocols(SSLContext context, SSLEngine engine) | |
| isClient | back to summary |
|---|---|
| public final boolean isClient() Implements abstract io. Doc from io. Returns the
| |
| isTlsV13Supported | back to summary |
|---|---|
| private static boolean isTlsV13Supported(String[] protocols) | |
| newEngine | back to summary |
|---|---|
| public final SSLEngine newEngine(BufferAllocator alloc) Implements abstract io. Doc from io. Creates a new If | |
| newEngine | back to summary |
|---|---|
| public final SSLEngine newEngine(BufferAllocator alloc, String peerHost, int peerPort) Implements abstract io. Doc from io. Creates a new If | |
| sessionContext | back to summary |
|---|---|
| public final SSLSessionContext sessionContext() Implements abstract io. Returns the JDK
| |
| supportedCiphers | back to summary |
|---|---|
| private static Set | |
| toNegotiator | back to summary |
|---|---|
| pack-priv static JdkApplicationProtocolNegotiator toNegotiator(ApplicationProtocolConfig config, boolean isServer)
Deprecated as a consequence of Translate a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv List | |
| pack-priv List | |
| pack-priv String[] | |
| pack-priv Provider | |
| pack-priv Set | |
| pack-priv Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| defaultCiphers | back to summary |
|---|---|
| pack-priv List<String> defaultCiphers | |
| defaultCiphersNonTLSv13 | back to summary |
|---|---|
| pack-priv List<String> defaultCiphersNonTLSv13 | |
| defaultProtocols | back to summary |
|---|---|
| pack-priv String[] defaultProtocols | |
| defaultProvider | back to summary |
|---|---|
| pack-priv Provider defaultProvider | |
| supportedCiphers | back to summary |
|---|---|
| pack-priv Set<String> supportedCiphers | |
| supportedCiphersNonTLSv13 | back to summary |
|---|---|
| pack-priv Set<String> supportedCiphersNonTLSv13 | |
| Defaults | back to summary |
|---|---|
| private Defaults() | |
| init | back to summary |
|---|---|
| pack-priv void init() | |