Java EE 5 SDK

com.sun.appserv.management.client
Class TLSParams

java.lang.Object
  extended by 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

Constructor Summary
TLSParams(File trustStore, char[] trustStorePassword, boolean prompt, HandshakeCompletedListener handshakeCompletedListener)
           
TLSParams(X509TrustManager[] trustManagers, HandshakeCompletedListener handshakeCompletedListener)
           
TLSParams(X509TrustManager trustManager, HandshakeCompletedListener handshakeCompletedListener)
           
 
Method Summary
 HandshakeCompletedListener getHandshakeCompletedListener()
           
 X509TrustManager[] getTrustManagers()
           
static X509TrustManager[] getTrustManagers(File trustStore, char[] trustStorePassword, boolean prompt)
          Return a X509TrustManager[] supporting trust via the specified trustStore file using the specified password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 file
prompt - 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

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.