TLSParamspublic final class TLSParams extends Object Class encapsulating parameters available for use with TLS. |
Fields Summary |
---|
private final X509TrustManager[] | mTrustManagers | private final HandshakeCompletedListener | mHandshakeCompletedListener |
Constructors Summary |
---|
public TLSParams(File trustStore, char[] trustStorePassword, boolean prompt, HandshakeCompletedListener handshakeCompletedListener)
this( getTrustManagers( trustStore, trustStorePassword, prompt), handshakeCompletedListener );
| public TLSParams(X509TrustManager[] trustManagers, HandshakeCompletedListener handshakeCompletedListener)
if ( trustManagers == null )
{
throw new IllegalArgumentException();
}
mTrustManagers = trustManagers;
mHandshakeCompletedListener = handshakeCompletedListener;
| public TLSParams(X509TrustManager trustManager, HandshakeCompletedListener handshakeCompletedListener)
this( new X509TrustManager[] { trustManager }, handshakeCompletedListener );
|
Methods Summary |
---|
public javax.net.ssl.HandshakeCompletedListener | getHandshakeCompletedListener()
return( mHandshakeCompletedListener );
| public static javax.net.ssl.X509TrustManager[] | getTrustManagers(java.io.File trustStore, char[] trustStorePassword, boolean prompt)Return a X509TrustManager[] supporting trust via
the specified trustStore file using the specified password.
final TrustStoreTrustManager mgr =
new TrustStoreTrustManager( trustStore, trustStorePassword );
mgr.setPrompt( prompt );
final X509TrustManager[] trustMgrs = new X509TrustManager[] { mgr };
return( trustMgrs );
| public javax.net.ssl.X509TrustManager[] | getTrustManagers()
return( mTrustManagers );
|
|