public interface StrongBuilder<T extends StrongBuilder,C>
Modifier and Type | Interface and Description |
---|---|
static interface |
StrongBuilder.Callback<C>
Callback to get a connection handed to you for use,
already set up for NetCipher.
|
Modifier and Type | Method and Description |
---|---|
C |
build(android.content.Intent status)
Builds a connection, applying the configuration already
specified in the builder.
|
void |
build(StrongBuilder.Callback<C> callback)
Asynchronous version of build(), one that uses OrbotInitializer
internally to get the status and checks the validity of the Tor
connection (if requested).
|
boolean |
supportsHttpProxy() |
boolean |
supportsSocksProxy() |
T |
withBestProxy()
Call this to configure the Tor proxy from the results
returned by Orbot, using the best available proxy
(SOCKS if possible, else HTTP)
|
T |
withHttpProxy()
Call this to configure the Tor proxy from the results
returned by Orbot, using the HTTP proxy.
|
T |
withSocksProxy()
Call this to configure the Tor proxy from the results
returned by Orbot, using the SOCKS proxy.
|
T |
withTorValidation()
Call this if you want the builder to confirm that we are
communicating over Tor, by reaching out to a Tor test
server and confirming our connection status.
|
T |
withTrustManagers(javax.net.ssl.TrustManager[] trustManagers)
Applies your own custom TrustManagers, such as for
replacing the stock keystore support with a custom
keystore.
|
T |
withWeakCiphers()
Call this if you want a weaker set of supported ciphers,
because you are running into compatibility problems with
some server due to a cipher mismatch.
|
T withBestProxy()
boolean supportsHttpProxy()
T withHttpProxy()
boolean supportsSocksProxy()
T withSocksProxy()
T withTrustManagers(javax.net.ssl.TrustManager[] trustManagers) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException
trustManagers
- the TrustManagers to usejava.security.NoSuchAlgorithmException
java.security.KeyManagementException
T withWeakCiphers()
T withTorValidation()
C build(android.content.Intent status) throws java.lang.Exception
status
- status Intent from OrbotInitializerjava.io.IOException
java.lang.Exception
void build(StrongBuilder.Callback<C> callback)
callback
- Callback to get a connection handed to you
for use, already set up for NetCipher