Class OpenSSLCipherConfigurationParser
- java.lang.Object
- 
- org.apache.tomcat.util.net.openssl.ciphers.OpenSSLCipherConfigurationParser
 
- 
 public class OpenSSLCipherConfigurationParser extends java.lang.ObjectClass in charge with parsing openSSL expressions to define a list of ciphers.
- 
- 
Constructor SummaryConstructors Constructor Description OpenSSLCipherConfigurationParser()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>convertForJSSE(java.util.Collection<Cipher> ciphers)static java.lang.StringjsseToOpenSSL(java.lang.String jsseCipherName)Converts a JSSE cipher name to an OpenSSL cipher name.static voidmain(java.lang.String[] args)static java.lang.StringopenSSLToJsse(java.lang.String opensslCipherName)Converts an OpenSSL cipher name to a JSSE cipher name.static java.util.LinkedHashSet<Cipher>parse(java.lang.String expression)static java.util.List<java.lang.String>parseExpression(java.lang.String expression)Parse the specified expression according to the OpenSSL syntax and returns a list of standard JSSE cipher names.static voidusage()
 
- 
- 
- 
Method Detail- 
parsepublic static java.util.LinkedHashSet<Cipher> parse(java.lang.String expression) 
 - 
convertForJSSEpublic static java.util.List<java.lang.String> convertForJSSE(java.util.Collection<Cipher> ciphers) 
 - 
parseExpressionpublic static java.util.List<java.lang.String> parseExpression(java.lang.String expression) Parse 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.
 
 - 
jsseToOpenSSLpublic static java.lang.String jsseToOpenSSL(java.lang.String jsseCipherName) Converts 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
 
 - 
openSSLToJssepublic static java.lang.String openSSLToJsse(java.lang.String opensslCipherName) Converts 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() 
 - 
mainpublic static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 
- 
 
-