Class OpenSSLCipherConfigurationParser
java.lang.Object
org.apache.tomcat.util.net.openssl.ciphers.OpenSSLCipherConfigurationParser
Class in charge with parsing openSSL expressions to define a list of ciphers.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionconvertForJSSE(Collection<Cipher> ciphers) static StringjsseToOpenSSL(String jsseCipherName) Converts a JSSE cipher name to an OpenSSL cipher name.static voidstatic StringopenSSLToJsse(String opensslCipherName) Converts an OpenSSL cipher name to a JSSE cipher name.static LinkedHashSet<Cipher>parseExpression(String expression) Parse the specified expression according to the OpenSSL syntax and returns a list of standard JSSE cipher names.static voidusage()
- 
Constructor Details- 
OpenSSLCipherConfigurationParserpublic OpenSSLCipherConfigurationParser()
 
- 
- 
Method Details- 
parse
- 
convertForJSSE
- 
parseExpressionParse the specified expression according to the OpenSSL syntax and returns a list of standard JSSE cipher names.- Parameters:
- expression- the openssl expression to define a list of cipher.
- Returns:
- the corresponding list of ciphers.
 
- 
jsseToOpenSSLConverts a JSSE cipher name to an OpenSSL cipher name.- Parameters:
- jsseCipherName- The JSSE name for a cipher
- Returns:
- The OpenSSL name for the specified JSSE cipher
 
- 
openSSLToJsseConverts an OpenSSL cipher name to a JSSE cipher name.- Parameters:
- opensslCipherName- The OpenSSL name for a cipher
- Returns:
- The JSSE name for the specified OpenSSL cipher. If none is known, the IANA standard name will be returned instead
 
- 
usagepublic static void usage()
- 
main- Throws:
- Exception
 
 
-