Deprecated
(4.4) use org..
SSLContext instances.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private String | |
| private SecureRandom | |
| pack-priv static final String | |
| pack-priv static final String | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SSLContext | |
| public SSLContextBuilder | loadKeyMaterial(final KeyStore keystore, final char[] keyPassword)
Deprecated
as a consequence of
SSLContextBuilder being deprecated.
|
| public SSLContextBuilder | loadKeyMaterial(final KeyStore keystore, final char[] keyPassword, final PrivateKeyStrategy aliasStrategy)
Deprecated
as a consequence of
PrivateKeyStrategy and SSLContextBuilder being deprecated.
|
| public SSLContextBuilder | loadTrustMaterial(final KeyStore truststore, final TrustStrategy trustStrategy)
Deprecated
as a consequence of
SSLContextBuilder being deprecated.
|
| public SSLContextBuilder | loadTrustMaterial(final KeyStore truststore)
Deprecated
as a consequence of
SSLContextBuilder being deprecated.
|
| public SSLContextBuilder | setSecureRandom(final SecureRandom secureRandom)
Deprecated
as a consequence of
SSLContextBuilder being deprecated.
|
| public SSLContextBuilder | useProtocol(final String protocol)
Deprecated
as a consequence of
SSLContextBuilder being deprecated.
|
| public SSLContextBuilder | |
| public SSLContextBuilder |
| keymanagers | back to summary |
|---|---|
| private final Set<KeyManager> keymanagers | |
| protocol | back to summary |
|---|---|
| private String protocol | |
| secureRandom | back to summary |
|---|---|
| private SecureRandom secureRandom | |
| SSL | back to summary |
|---|---|
| pack-priv static final String SSL | |
| TLS | back to summary |
|---|---|
| pack-priv static final String TLS | |
| trustmanagers | back to summary |
|---|---|
| private final Set<TrustManager> trustmanagers | |
| SSLContextBuilder | back to summary |
|---|---|
| public SSLContextBuilder() | |
| build | back to summary |
|---|---|
| public SSLContext build() throws NoSuchAlgorithmException, KeyManagementException | |
| loadKeyMaterial | back to summary |
|---|---|
| public SSLContextBuilder loadKeyMaterial(final KeyStore keystore, final char[] keyPassword) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
Deprecated as a consequence of | |
| loadKeyMaterial | back to summary |
|---|---|
| public SSLContextBuilder loadKeyMaterial(final KeyStore keystore, final char[] keyPassword, final PrivateKeyStrategy aliasStrategy) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
Deprecated as a consequence of | |
| loadTrustMaterial | back to summary |
|---|---|
| public SSLContextBuilder loadTrustMaterial(final KeyStore truststore, final TrustStrategy trustStrategy) throws NoSuchAlgorithmException, KeyStoreException
Deprecated as a consequence of | |
| loadTrustMaterial | back to summary |
|---|---|
| public SSLContextBuilder loadTrustMaterial(final KeyStore truststore) throws NoSuchAlgorithmException, KeyStoreException
Deprecated as a consequence of | |
| setSecureRandom | back to summary |
|---|---|
| public SSLContextBuilder setSecureRandom(final SecureRandom secureRandom)
Deprecated as a consequence of | |
| useProtocol | back to summary |
|---|---|
| public SSLContextBuilder useProtocol(final String protocol)
Deprecated as a consequence of | |
| useSSL | back to summary |
|---|---|
| public SSLContextBuilder useSSL()
Deprecated as a consequence of | |
| useTLS | back to summary |
|---|---|
| public SSLContextBuilder useTLS()
Deprecated as a consequence of | |
| Modifier and Type | Field and Description |
|---|---|
| private final PrivateKeyStrategy | aliasStrategy
Deprecated
as a consequence of
PrivateKeyStrategy being deprecated.
|
| private final X509KeyManager |
| Access | Constructor and Description |
|---|---|
| pack-priv | KeyManagerDelegate(final X509KeyManager keyManager, final PrivateKeyStrategy aliasStrategy)
Deprecated
as a consequence of
PrivateKeyStrategy being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public String | chooseClientAlias(final String[]
the key algorithm type name(s), ordered
with the most-preferred key type first. keyTypes, final Principal[] the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used. issuers, final Socket the socket to be used for this connection. This
parameter can be null, which indicates that
implementations are free to select an alias applicable
to any socket. socket)Implements javax. |
| public String | chooseServerAlias(final String
the key algorithm type name. keyType, final Principal[] the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used. issuers, final Socket the socket to be used for this connection. This
parameter can be null, which indicates that
implementations are free to select an alias applicable
to any socket. socket)Implements javax. |
| public X509Certificate[] | getCertificateChain(final String
the alias name alias)Implements javax. |
| public String[] | getClientAliases(final String
the key algorithm type name keyType, final Principal[] the list of acceptable CA issuer subject names,
or null if it does not matter which issuers are used. issuers)Implements javax. |
| public PrivateKey | getPrivateKey(final String
the alias name alias)Implements javax. |
| public String[] | getServerAliases(final String
the key algorithm type name keyType, final Principal[] the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used. issuers)Implements javax. |
| aliasStrategy | back to summary |
|---|---|
| private final PrivateKeyStrategy aliasStrategy
Deprecated as a consequence of | |
| keyManager | back to summary |
|---|---|
| private final X509KeyManager keyManager | |
| KeyManagerDelegate | back to summary |
|---|---|
| pack-priv KeyManagerDelegate(final X509KeyManager keyManager, final PrivateKeyStrategy aliasStrategy)
Deprecated as a consequence of | |
| chooseClientAlias | back to summary |
|---|---|
| public String chooseClientAlias(final String[] keyTypes, final Principal[] issuers, final Socket socket) Implements javax. Doc from javax. Choose an alias to authenticate the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
| |
| chooseServerAlias | back to summary |
|---|---|
| public String chooseServerAlias(final String keyType, final Principal[] issuers, final Socket socket) Implements javax. Doc from javax. Choose an alias to authenticate the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
| |
| getCertificateChain | back to summary |
|---|---|
| public X509Certificate[] getCertificateChain(final String alias) Implements javax. Doc from javax. Returns the certificate chain associated with the given alias.
| |
| getClientAliases | back to summary |
|---|---|
| public String[] getClientAliases(final String keyType, final Principal[] issuers) Implements javax. Doc from javax. Get the matching aliases for authenticating the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any). | |
| getPrivateKey | back to summary |
|---|---|
| public PrivateKey getPrivateKey(final String alias) Implements javax. Doc from javax. Returns the key associated with the given alias.
| |
| getServerAliases | back to summary |
|---|---|
| public String[] getServerAliases(final String keyType, final Principal[] issuers) Implements javax. Doc from javax. Get the matching aliases for authenticating the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any). | |
| Modifier and Type | Field and Description |
|---|---|
| private final X509TrustManager | |
| private final TrustStrategy |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkClientTrusted(final X509Certificate[]
the peer certificate chain chain, final String the authentication type based on the client certificate authType)Implements javax. |
| public void | checkServerTrusted(final X509Certificate[]
the peer certificate chain chain, final String the key exchange algorithm used authType)Implements javax. |
| public X509Certificate[] | getAcceptedIssuers()
Implements javax. |
| trustManager | back to summary |
|---|---|
| private final X509TrustManager trustManager | |
| trustStrategy | back to summary |
|---|---|
| private final TrustStrategy trustStrategy | |
| TrustManagerDelegate | back to summary |
|---|---|
| pack-priv TrustManagerDelegate(final X509TrustManager trustManager, final TrustStrategy trustStrategy) | |
| checkClientTrusted | back to summary |
|---|---|
| public void checkClientTrusted(final X509Certificate[] chain, final String authType) throws CertificateException Implements javax. Doc from javax. Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for client SSL authentication based on the authentication type. The authentication type is determined by the actual certificate used. For instance, if RSAPublicKey is used, the authType should be "RSA". Checking is case-sensitive.
| |
| checkServerTrusted | back to summary |
|---|---|
| public void checkServerTrusted(final X509Certificate[] chain, final String authType) throws CertificateException Implements javax. Doc from javax. Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for server SSL authentication based on the authentication type. The authentication type is the key exchange algorithm portion of the cipher suites represented as a String, such as "RSA", "DHE_DSS". Note for some exportable cipher suites, the key exchange algorithm is determined at run time during the handshake. For instance, for TLS_RSA_EXPORT_WITH_RC4_40_MD5, the authType should be RSA_EXPORT when an ephemeral RSA key is used for the key exchange, and RSA when the key from the server certificate is used. Checking is case-sensitive.
| |
| getAcceptedIssuers | back to summary |
|---|---|
| public X509Certificate[] getAcceptedIssuers() Implements javax. Doc from javax. Return an array of certificate authority certificates which are trusted for authenticating peers.
| |