public final class Encryption extends Object
| Modifier and Type | Method and Description |
|---|---|
static Encryption |
createStartTls(SSLContext context) |
static Encryption |
createStartTls(SSLContext context,
String[] enabledCipherSuites)
Create a new
Encryption which uses STARTTLS and only allows the given Ciphersuites |
static Encryption |
createTls(SSLContext context) |
static Encryption |
createTls(SSLContext context,
String[] enabledCipherSuites)
Create a new
Encryption which is TLS based and only allows the given Ciphersuites |
SSLContext |
getContext()
Return the
SSLContext to use |
String[] |
getEnabledCipherSuites()
Return the Ciphersuites that are allowed for the
Encryption or null if all should be allowed |
boolean |
isStartTLS()
Return
true if this Encryption should be used for STARTTLS |
public static Encryption createTls(SSLContext context)
createStartTls(SSLContext, String[])public static Encryption createTls(SSLContext context, String[] enabledCipherSuites)
Encryption which is TLS based and only allows the given Ciphersuitescontext - enabledCipherSuites - or null if all Ciphersuites should be allowedpublic static Encryption createStartTls(SSLContext context)
createStartTls(SSLContext, String[])public static Encryption createStartTls(SSLContext context, String[] enabledCipherSuites)
Encryption which uses STARTTLS and only allows the given Ciphersuitescontext - enabledCipherSuites - or null if all Ciphersuites should be allowedpublic SSLContext getContext()
SSLContext to usepublic boolean isStartTLS()
true if this Encryption should be used for STARTTLSpublic String[] getEnabledCipherSuites()
Encryption or null if all should be allowedCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.