Package com.dropbox.core.http
Class SSLConfig
- java.lang.Object
- 
- com.dropbox.core.http.SSLConfig
 
- 
 public class SSLConfig extends java.lang.ObjectThe proper SSL configuration that should be used when connecting to Dropbox API servers. This includes:- A custom set of trusted root SSL certificates.
- Requiring TLS v1.0 and above (TLS v1.2 if supported)
- A limited set of allowed SSL ciphersuites.
 getSSLSocketFactory()returns a properly configured object that you can use to create sockets.If you have an HttpsURLConnection, call the convenience methodapply(HttpsURLConnection)(before callingURLConnection.connect()) to apply the appropriate security settings.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSSLConfig.LoadException
 - 
Constructor SummaryConstructors Constructor Description SSLConfig()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapply(javax.net.ssl.HttpsURLConnection conn)Apply security settings to anHttpsURLConnection.static javax.net.ssl.SSLSocketFactorygetSSLSocketFactory()static javax.net.ssl.X509TrustManagergetTrustManager()
 
- 
- 
- 
Method Detail- 
applypublic static void apply(javax.net.ssl.HttpsURLConnection conn) throws javax.net.ssl.SSLExceptionApply security settings to anHttpsURLConnection. Make sure you haven't calledURLConnection.connect()yet.- Throws:
- javax.net.ssl.SSLException
 
 - 
getTrustManagerpublic static javax.net.ssl.X509TrustManager getTrustManager() 
 - 
getSSLSocketFactorypublic static javax.net.ssl.SSLSocketFactory getSSLSocketFactory() 
 
- 
 
-