com.sun.appserv.management.client
Class TLSParams
java.lang.Object
com.sun.appserv.management.client.TLSParams
public final class TLSParams
- extends Object
Class encapsulating parameters available for use with TLS.
- See Also:
TrustStoreTrustManager
,
TrustAnyTrustManager
,
HandshakeCompletedListenerImpl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TLSParams
public TLSParams(File trustStore,
char[] trustStorePassword,
boolean prompt,
HandshakeCompletedListener handshakeCompletedListener)
- Parameters:
trustStore
- trustStorePassword
- prompt
- handshakeCompletedListener
- (may be null)
TLSParams
public TLSParams(X509TrustManager[] trustManagers,
HandshakeCompletedListener handshakeCompletedListener)
- Parameters:
trustManagers
- handshakeCompletedListener
- (may be null)
TLSParams
public TLSParams(X509TrustManager trustManager,
HandshakeCompletedListener handshakeCompletedListener)
- Parameters:
trustManager
- handshakeCompletedListener
- (may be null)
getTrustManagers
public static X509TrustManager[] getTrustManagers(File trustStore,
char[] trustStorePassword,
boolean prompt)
- Return a X509TrustManager[] supporting trust via
the specified trustStore file using the specified password.
- Parameters:
trustStore
- trustStorePassword
- password to use for the trustStore fileprompt
- whether to prompt via System.out/in for addition of new certificates
getTrustManagers
public X509TrustManager[] getTrustManagers()
- Returns:
- the TrustManagers in use
getHandshakeCompletedListener
public HandshakeCompletedListener getHandshakeCompletedListener()
- Returns:
- the HandshakeCompletedListener in use or null if none
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.