com.iplanet.trustbase.xurl
Class HttpsConfiguration

java.lang.Object
  |
  +--com.iplanet.trustbase.xurl.HttpsConfiguration

public class HttpsConfiguration
extends java.lang.Object

HttpsConfiguration is a static initialiser class - it must be initialised before any HTTPS/SSL transactions can take place within the CSCEngine. It is initialised by creating an instance and then the store and certificates you want the SSL Session to use.
For Example a typical initialisation would be


	HttpsConfiguration httpConfig = HttpsConfiguration.getInstance ();
	httpConfig.setTokenKeyStore ( tokenKeyStore ); *	httpConfig.setClientCertAlias ( "Server-Cert" ); *	httpConfig.setServerCertAlias ( null );
 


Where the ClientCertAlias is the name of the certificate you wish to use as your SSL Client Certificate.


Method Summary
 com.iplanet.trustbase.security.store.ssl.SSLClientCertSelector getClientCertSelector()
          Gets The Client Cert Selector used by the SSL Context.
static HttpsConfiguration getInstance()
          Gets An instance of HttpsConfiguration.
 java.lang.String getServerCertAlias()
          Gets The Server Cert Alias to use when conducting transactions as a server.
 TokenKeyStore getTokenKeyStore()
          Gets The TokenKeyStore associated with this SSL Configuration.
 void setClientCert(java.security.cert.X509Certificate clientCert)
          Sets the client cert selector to be the issuerName and SerialNumber of the Certificate provided.
 void setClientCertAlias(java.lang.String clientAlias)
          Sets the client Cert Selector to be used by the SSL Context.
 void setClientCertSelector(com.iplanet.trustbase.security.store.ssl.SSLClientCertSelector clientCertSelector)
          A Convenience method to set the client Cert selector using a certificate name.
 void setServerCertAlias(java.lang.String alias)
          Sets the server certificate alias.
 void setTokenKeyStore(TokenKeyStore store)
          Sets the TokenKeyStore associated with this SSL Configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HttpsConfiguration getInstance()
Gets An instance of HttpsConfiguration.

getTokenKeyStore

public TokenKeyStore getTokenKeyStore()
Gets The TokenKeyStore associated with this SSL Configuration.

getClientCertSelector

public com.iplanet.trustbase.security.store.ssl.SSLClientCertSelector getClientCertSelector()
Gets The Client Cert Selector used by the SSL Context.

getServerCertAlias

public java.lang.String getServerCertAlias()
Gets The Server Cert Alias to use when conducting transactions as a server.

setTokenKeyStore

public void setTokenKeyStore(TokenKeyStore store)
Sets the TokenKeyStore associated with this SSL Configuration.

setClientCertAlias

public void setClientCertAlias(java.lang.String clientAlias)
Sets the client Cert Selector to be used by the SSL Context.

setClientCert

public void setClientCert(java.security.cert.X509Certificate clientCert)
Sets the client cert selector to be the issuerName and SerialNumber of the Certificate provided.

setClientCertSelector

public void setClientCertSelector(com.iplanet.trustbase.security.store.ssl.SSLClientCertSelector clientCertSelector)
A Convenience method to set the client Cert selector using a certificate name.

setServerCertAlias

public void setServerCertAlias(java.lang.String alias)
Sets the server certificate alias.