| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| public static class | ExportControlled.
X509TrustManager wrapper that allows skipping server certificate validation and adds certificate expiration check. |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private static final String[] | |
| private static final String[] | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static RSAPrivateKey | |
| public static RSAPublicKey | |
| public static boolean | |
| public static byte[] | |
| public static byte[] | |
| private static String[] | |
| private static String[] | |
| private static ExportControlled. | |
| private static ExportControlled. | |
| private static List | |
| public static boolean | |
| public static Socket | Returns: SSL socketoriginal non-SSL socket rawSocket, SocketConnection the Protocol instance containing the socket to convert into an SSLSocket. socketConnection, ServerVersion ServerVersion object serverVersion, Log Logger log)Converts the socket being used in the given SocketConnection to an SSLSocket by performing the TLS handshake. |
| public static byte[] |
| ALLOWED_CIPHERS | back to summary |
|---|---|
| private static final List<String> ALLOWED_CIPHERS | |
| APPROVED_TLS_PROTOCOLS | back to summary |
|---|---|
| private static final String[] APPROVED_TLS_PROTOCOLS | |
| KNOWN_TLS_PROTOCOLS | back to summary |
|---|---|
| private static final String[] KNOWN_TLS_PROTOCOLS | |
| SSL_CONTEXT_PROTOCOL | back to summary |
|---|---|
| private static final String SSL_CONTEXT_PROTOCOL | |
| TLS_SETTINGS_RESOURCE | back to summary |
|---|---|
| private static final String TLS_SETTINGS_RESOURCE | |
| TLSv1 | back to summary |
|---|---|
| private static final String TLSv1 | |
| TLSv1_1 | back to summary |
|---|---|
| private static final String TLSv1_1 | |
| TLSv1_2 | back to summary |
|---|---|
| private static final String TLSv1_2 | |
| TLSv1_3 | back to summary |
|---|---|
| private static final String TLSv1_3 | |
| UNACCEPTABLE_CIPHER_SUBSTR | back to summary |
|---|---|
| private static final List<String> UNACCEPTABLE_CIPHER_SUBSTR | |
| ExportControlled | back to summary |
|---|---|
| private ExportControlled() | |
| checkValidProtocols | back to summary |
|---|---|
| public static void checkValidProtocols(List<String> protocols) | |
| decodeRSAPrivateKey | back to summary |
|---|---|
| public static RSAPrivateKey decodeRSAPrivateKey(String key) throws RSAException | |
| decodeRSAPublicKey | back to summary |
|---|---|
| public static RSAPublicKey decodeRSAPublicKey(String key) throws RSAException | |
| enabled | back to summary |
|---|---|
| public static boolean enabled() | |
| encryptWithRSAPublicKey | back to summary |
|---|---|
| public static byte[] encryptWithRSAPublicKey(byte[] source, RSAPublicKey key, String transformation) throws RSAException | |
| encryptWithRSAPublicKey | back to summary |
|---|---|
| public static byte[] encryptWithRSAPublicKey(byte[] source, RSAPublicKey key) throws RSAException | |
| getAllowedCiphers | back to summary |
|---|---|
| private static String[] getAllowedCiphers(PropertySet pset, List<String> socketCipherSuites) | |
| getAllowedProtocols | back to summary |
|---|---|
| private static String[] getAllowedProtocols(PropertySet pset, String[] socketProtocols) | |
| getKeyStoreConfigurations | back to summary |
|---|---|
| private static ExportControlled. | |
| getTrustStoreConfigurations | back to summary |
|---|---|
| private static ExportControlled. | |
| getValidProtocols | back to summary |
|---|---|
| private static List | |
| isSSLEstablished | back to summary |
|---|---|
| public static boolean isSSLEstablished(Socket socket) | |
| performTlsHandshake | back to summary |
|---|---|
| public static Socket performTlsHandshake(Socket rawSocket, SocketConnection socketConnection, ServerVersion serverVersion, Log log) throws IOException, SSLParamsException, FeatureNotAvailableException Converts the socket being used in the given SocketConnection to an SSLSocket by performing the TLS handshake.
| |
| sign | back to summary |
|---|---|
| public static byte[] sign(byte[] source, RSAPrivateKey privateKey) throws RSAException | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private boolean | Returns: true if the host name matches the pattern, false otherwise.the pattern to match with the host name. ptn)Verify the host name against the given pattern, using the rules specified in RFC 6125, Section 6.4.3. |
| hostname | back to summary |
|---|---|
| private String hostname | |
| HostnameChecker | back to summary |
|---|---|
| public HostnameChecker(String hostname) | |
| match | back to summary |
|---|---|
| public void match(X509Certificate certificate) throws CertificateException | |
| verifyHostName | back to summary |
|---|---|
| private boolean verifyHostName(String ptn) Verify the host name against the given pattern, using the rules specified in RFC 6125, Section 6.4.3. Support wildcard character as defined in the RFC.
| |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| keyStorePassword | back to summary |
|---|---|
| public String keyStorePassword | |
| keyStoreType | back to summary |
|---|---|
| public String keyStoreType | |
| keyStoreUrl | back to summary |
|---|---|
| public String keyStoreUrl | |
| KeyStoreConfigurations | back to summary |
|---|---|
| public KeyStoreConfigurations() | |
| KeyStoreConfigurations | back to summary |
|---|---|
| public KeyStoreConfigurations(String keyStoreUrl, String keyStorePassword, String keyStoreType) | |
| Modifier and Type | Field and Description |
|---|---|
| private ExceptionInterceptor | |
| private boolean | |
| private boolean | |
| private String | |
| private String | |
| private ExportControlled. | |
| private String | |
| private String | |
| private ExportControlled. | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SSLContext | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| exceptionInterceptor | back to summary |
|---|---|
| private ExceptionInterceptor exceptionInterceptor | |
| fallbackToSystemTrustStore | back to summary |
|---|---|
| private boolean fallbackToSystemTrustStore | |
| fipsCompliantJsse | back to summary |
|---|---|
| private boolean fipsCompliantJsse | |
| KeyManagerFactoryProvider | back to summary |
|---|---|
| private String KeyManagerFactoryProvider | |
| keyStoreProvider | back to summary |
|---|---|
| private String keyStoreProvider | |
| keyStoreSettings | back to summary |
|---|---|
| private ExportControlled. | |
| sslContextProvider | back to summary |
|---|---|
| private String sslContextProvider | |
| trustManagerFactoryProvider | back to summary |
|---|---|
| private String trustManagerFactoryProvider | |
| trustStoreSettings | back to summary |
|---|---|
| private ExportControlled. | |
| verifyServerCertificate | back to summary |
|---|---|
| private boolean verifyServerCertificate | |
| SslContextBuilder | back to summary |
|---|---|
| public SslContextBuilder() | |
| build | back to summary |
|---|---|
| public SSLContext build() | |
| setExceptionInterceptor | back to summary |
|---|---|
| public void setExceptionInterceptor(ExceptionInterceptor exceptionInterceptor) | |
| setFallbackToSystemTrustStore | back to summary |
|---|---|
| public void setFallbackToSystemTrustStore(boolean fallbackToDefaultTrustStore) | |
| setFipsCompliantJsse | back to summary |
|---|---|
| public void setFipsCompliantJsse(boolean fipsCompliantJsse) | |
| setKeyManagerFactoryProvider | back to summary |
|---|---|
| public void setKeyManagerFactoryProvider(String keyManagerFactoryProvider) | |
| setKeyStoreProvider | back to summary |
|---|---|
| public void setKeyStoreProvider(String keyStoreProvider) | |
| setKeyStoreSettings | back to summary |
|---|---|
| public void setKeyStoreSettings(ExportControlled. | |
| setSslContextProvider | back to summary |
|---|---|
| public void setSslContextProvider(String sslContextProvider) | |
| setTrustManagerFactoryProvider | back to summary |
|---|---|
| public void setTrustManagerFactoryProvider(String trustManagerFactoryProvider) | |
| setTrustStoreSettings | back to summary |
|---|---|
| public void setTrustStoreSettings(ExportControlled. | |
| setVerifyServerCertificate | back to summary |
|---|---|
| public void setVerifyServerCertificate(boolean verifyServerCertificate) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private CertificateFactory | |
| private CertPathValidator | |
| private X509TrustManager | |
| private PKIXParameters | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | X509TrustManagerWrapper(X509TrustManager
if null then enables just certificate expiration check. tm)Constructor for enabling server certificate validation and certificate expiration check. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkClientTrusted(X509Certificate[]
the peer certificate chain chain, String the authentication type based on the client certificate authType)Implements 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. |
| public void | checkServerTrusted(X509Certificate[]
the peer certificate chain chain, String the key exchange algorithm used authType)Implements 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. |
| public X509Certificate[] | getAcceptedIssuers()
Implements javax. Return an array of certificate authority certificates which are trusted for authenticating peers. |
| CERT_FACTORY_TYPE | back to summary |
|---|---|
| private static final String CERT_FACTORY_TYPE | |
| CERT_PATH_VALIDATOR_ALGORITHM | back to summary |
|---|---|
| private static final String CERT_PATH_VALIDATOR_ALGORITHM | |
| certFactory | back to summary |
|---|---|
| private CertificateFactory certFactory | |
| certPathValidator | back to summary |
|---|---|
| private CertPathValidator certPathValidator | |
| originalTrustManager | back to summary |
|---|---|
| private X509TrustManager originalTrustManager | |
| pkixParams | back to summary |
|---|---|
| private PKIXParameters pkixParams | |
| validateServerCert | back to summary |
|---|---|
| private boolean validateServerCert | |
| X509TrustManagerWrapper | back to summary |
|---|---|
| pack-priv X509TrustManagerWrapper(X509TrustManager tm) throws CertificateException Constructor for enabling server certificate validation and certificate expiration check.
| |
| X509TrustManagerWrapper | back to summary |
|---|---|
| pack-priv X509TrustManagerWrapper() throws CertificateException Constructor for enabling just certificate expiration check. | |
| checkClientTrusted | back to summary |
|---|---|
| public void checkClientTrusted(X509Certificate[] chain, 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(X509Certificate[] chain, 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.
| |