| Modifier and Type | Field and Description |
|---|---|
| private static final ConcurrentMap | j2o
Java-to-OpenSSL cipher suite conversion map Note that the Java cipher suite has the protocol prefix (TLS_, SSL_) |
| private static final Map | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | JAVA_CIPHERSUITE_PATTERN
A_B_WITH_C_D, where: A - TLS or SSL (protocol) B - handshake algorithm (key exchange and authentication algorithms to be precise) C - bulk cipher D - HMAC algorithm This regular expression assumes that: 1) A is always TLS or SSL, and 2) D is always a single word. |
| private static final InternalLogger | |
| private static final ConcurrentMap | o2j
OpenSSL-to-Java cipher suite conversion map. |
| private static final Map | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | OPENSSL_CIPHERSUITE_PATTERN
A-B-C, where: A - handshake algorithm (key exchange and authentication algorithms to be precise) B - bulk cipher C - HMAC algorithm This regular expression assumes that: 1) A has some deterministic pattern as shown below, and 2) C is always a single word |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static Map | |
| pack-priv static void | |
| pack-priv static void | convertToCipherStrings(Iterable<String> cipherSuites, StringBuilder cipherBuilder, StringBuilder cipherTLSv13Builder, boolean boringSSL)
Convert the given ciphers if needed to OpenSSL format and append them to the correct |
| pack-priv static boolean | isJ2OCached(String key, String value)
Tests if the specified key-value pair has been cached in Java-to-OpenSSL cache. |
| pack-priv static boolean | isO2JCached(String key, String protocol, String value)
Tests if the specified key-value pair has been cached in OpenSSL-to-Java cache. |
| public static String | Returns: The translated cipher suite name according to java conventions. This will not benull.An OpenSSL cipher suite name. openSslCipherSuite, String The cryptographic protocol (i.e. SSL, TLS, ...). protocol)Convert from OpenSSL cipher suite name convention to java cipher suite name convention. |
| private static String | |
| private static String | |
| private static String | |
| pack-priv static String | |
| private static String | |
| public static String | |
| private static String | |
| private static String | |
| private static String | |
| pack-priv static String |
| j2o | back to summary |
|---|---|
| private static final ConcurrentMap<String, String> j2o Java-to-OpenSSL cipher suite conversion map Note that the Java cipher suite has the protocol prefix (TLS_, SSL_) | |
| j2oTls13 | back to summary |
|---|---|
| private static final Map<String, String> j2oTls13 | |
| JAVA_AES_CBC_PATTERN | back to summary |
|---|---|
| private static final Pattern JAVA_AES_CBC_PATTERN | |
| JAVA_AES_PATTERN | back to summary |
|---|---|
| private static final Pattern JAVA_AES_PATTERN | |
| JAVA_CIPHERSUITE_PATTERN | back to summary |
|---|---|
| private static final Pattern JAVA_CIPHERSUITE_PATTERN A_B_WITH_C_D, where: A - TLS or SSL (protocol) B - handshake algorithm (key exchange and authentication algorithms to be precise) C - bulk cipher D - HMAC algorithm This regular expression assumes that: 1) A is always TLS or SSL, and 2) D is always a single word. | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| o2j | back to summary |
|---|---|
| private static final ConcurrentMap<String, Map<String, String>> o2j OpenSSL-to-Java cipher suite conversion map. Note that one OpenSSL cipher suite can be converted to more than one Java cipher suites because a Java cipher suite has the protocol name prefix (TLS_, SSL_) | |
| o2jTls13 | back to summary |
|---|---|
| private static final Map<String, Map<String, String>> o2jTls13 | |
| OPENSSL_AES_CBC_PATTERN | back to summary |
|---|---|
| private static final Pattern OPENSSL_AES_CBC_PATTERN | |
| OPENSSL_AES_PATTERN | back to summary |
|---|---|
| private static final Pattern OPENSSL_AES_PATTERN | |
| OPENSSL_CIPHERSUITE_PATTERN | back to summary |
|---|---|
| private static final Pattern OPENSSL_CIPHERSUITE_PATTERN A-B-C, where: A - handshake algorithm (key exchange and authentication algorithms to be precise) B - bulk cipher C - HMAC algorithm This regular expression assumes that: 1) A has some deterministic pattern as shown below, and 2) C is always a single word | |
| CipherSuiteConverter | back to summary |
|---|---|
| private CipherSuiteConverter() | |
| cacheFromJava | back to summary |
|---|---|
| private static String cacheFromJava(String javaCipherSuite, boolean boringSSL) | |
| cacheFromOpenSsl | back to summary |
|---|---|
| private static Map | |
| clearCache | back to summary |
|---|---|
| pack-priv static void clearCache() Clears the cache for testing purpose. | |
| convertToCipherStrings | back to summary |
|---|---|
| pack-priv static void convertToCipherStrings(Iterable<String> cipherSuites, StringBuilder cipherBuilder, StringBuilder cipherTLSv13Builder, boolean boringSSL) Convert the given ciphers if needed to OpenSSL format and append them to the correct | |
| isJ2OCached | back to summary |
|---|---|
| pack-priv static boolean isJ2OCached(String key, String value) Tests if the specified key-value pair has been cached in Java-to-OpenSSL cache. | |
| isO2JCached | back to summary |
|---|---|
| pack-priv static boolean isO2JCached(String key, String protocol, String value) Tests if the specified key-value pair has been cached in OpenSSL-to-Java cache. | |
| toJava | back to summary |
|---|---|
| public static String toJava(String openSslCipherSuite, String protocol) Convert from OpenSSL cipher suite name convention to java cipher suite name convention. | |
| toJavaBulkCipher | back to summary |
|---|---|
| private static String toJavaBulkCipher(String bulkCipher, boolean export) | |
| toJavaHandshakeAlgo | back to summary |
|---|---|
| private static String toJavaHandshakeAlgo(String handshakeAlgo, boolean export) | |
| toJavaHmacAlgo | back to summary |
|---|---|
| private static String toJavaHmacAlgo(String hmacAlgo) | |
| toJavaUncached | back to summary |
|---|---|
| pack-priv static String toJavaUncached(String openSslCipherSuite) | |
| toJavaUncached0 | back to summary |
|---|---|
| private static String toJavaUncached0(String openSslCipherSuite, boolean checkTls13) | |
| toOpenSsl | back to summary |
|---|---|
| public static String toOpenSsl(String javaCipherSuite, boolean boringSSL) Converts the specified Java cipher suite to its corresponding OpenSSL cipher suite name.
| |
| toOpenSslBulkCipher | back to summary |
|---|---|
| private static String toOpenSslBulkCipher(String bulkCipher) | |
| toOpenSslHandshakeAlgo | back to summary |
|---|---|
| private static String toOpenSslHandshakeAlgo(String handshakeAlgo) | |
| toOpenSslHmacAlgo | back to summary |
|---|---|
| private static String toOpenSslHmacAlgo(String hmacAlgo) | |
| toOpenSslUncached | back to summary |
|---|---|
| pack-priv static String toOpenSslUncached(String javaCipherSuite, boolean boringSSL) | |