com.ibm.websphere.ssl

Class SSLConfigChangeEvent

  1. java.lang.Object
  2. extended bycom.ibm.websphere.ssl.SSLConfigChangeEvent

  1. public class SSLConfigChangeEvent
  2. extends java.lang.Object

This class is the event received by the SSLConfigChanceListener which components and applications register with the JSSEHelper API. An SSLConfigChangeEvent will be sent with old and new SSL alias. If the old and new SSL alias is the same, then the properties within it changed. It's up to the listener implementation to call JSSEHelper API again if it's desired to dynamically refresh the Properties, SSLContext, SSL socket factories, and/or HTTPS URLStreamHandlers.

Since:
WAS 6.1
Version:
1.0
See Also:
JSSEHelper

Constructor Summary

Constructor and Description
SSLConfigChangeEvent(java.lang.String alias,java.util.Properties config,java.lang.String selection,java.util.Map connInfo)

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getAlias()
Returns the SSL alias used in the previous call to the JSSEHelper API.
  1. java.util.Properties
getChangedSSLConfig()
Return the SSL properties effective after the most recent change.
  1. java.lang.String
getClientCertificateAlias()
Returns the certificate alias used for outbound connections by the SSL configuration returned from the JSSEHelper API.
  1. java.util.Map
getConnectionInfo()
Returns the connection info Map which was passed into the JSSEHelper API, if present.
  1. java.util.Properties
getOriginalSSLConfig()
Return the SSL properties which this listener originally registered.
  1. java.lang.String
getSelectionType()
Returns the selection type made by JSSEHelper.
  1. java.lang.String
getServerCertificateAlias()
Returns the certificate alias used for inbound connections by the SSL configuration returned from the JSSEHelper API.
  1. java.lang.String
getState()
Returns the state of the SSL configuration.
  1. void
setChangedSSLConfig(java.util.Properties config)
Allows the runtime to set the new Properties after the change took place.
  1. void
setState(java.lang.String state)
Allows the runtime to set the state after the change took place.
  1. java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

SSLConfigChangeEvent

  1. public SSLConfigChangeEvent(java.lang.String alias,
  2. java.util.Properties config,
  3. java.lang.String selection,
  4. java.util.Map connInfo)

Method Detail

getSelectionType

  1. public java.lang.String getSelectionType( )

Returns the selection type made by JSSEHelper. This could be "direct", "dynamic", or "scoped". Refer to the JSSEHelper API JavaDoc for information on these selection types.


getConnectionInfo

  1. public java.util.Map getConnectionInfo( )

Returns the connection info Map which was passed into the JSSEHelper API, if present. This is an optional parameter so null may be returned by this API. See JSSEHelper API for connection info properties.


getAlias

  1. public java.lang.String getAlias( )

Returns the SSL alias used in the previous call to the JSSEHelper API.


getClientCertificateAlias

  1. public java.lang.String getClientCertificateAlias( )

Returns the certificate alias used for outbound connections by the SSL configuration returned from the JSSEHelper API.


getServerCertificateAlias

  1. public java.lang.String getServerCertificateAlias( )

Returns the certificate alias used for inbound connections by the SSL configuration returned from the JSSEHelper API.


getState

  1. public java.lang.String getState( )

Returns the state of the SSL configuration. This will be either "changed" or "deleted". If the SSL configuration is deleted and direct specification was the selection type, then a new alias will need to be selected or group/dynamic selection should be used. If the state is "deleted", this listener will be automatically de-registered since the configuration has gone away.


getOriginalSSLConfig

  1. public java.util.Properties getOriginalSSLConfig( )

Return the SSL properties which this listener originally registered.


getChangedSSLConfig

  1. public java.util.Properties getChangedSSLConfig( )

Return the SSL properties effective after the most recent change. This will be null if the getState() method returns "deleted".


setChangedSSLConfig

  1. public void setChangedSSLConfig( java.util.Properties config)

Allows the runtime to set the new Properties after the change took place.


setState

  1. public void setState(java.lang.String state)

Allows the runtime to set the state after the change took place.


toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Object