org.exolab.jms.net.util
Class SSLProperties

java.lang.Object
  |
  +--org.exolab.jms.net.util.SSLProperties

public final class SSLProperties
extends java.lang.Object

Helper class to hold the SSL properties (used by TPCS & HTTPS connectors).

Version:
$Revision: 1.4 $
Author:
Daniel Otero, Tim Anderson

Constructor Summary
SSLProperties()
          Construct a new SSLProperties.
SSLProperties(Properties properties)
          Construct a new SSLProperties.
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks whether this instance is equal to another.
 void export(Properties properties)
          Helper to export this to a Properties instance.
 java.lang.String getKeyStore()
          Returns the keystore.
 java.lang.String getKeyStorePassword()
          Returns the keystore password.
 java.lang.String getKeyStoreType()
          Returns the keystore type.
 java.lang.String getTrustStore()
          Returns the truststore.
 java.lang.String getTrustStorePassword()
          Returns the truststore password.
 java.lang.String getTrustStoreType()
          Returns the truststore type.
 boolean isEmpty()
          Test to see if this instance has been populated.
 void setKeyStore(java.lang.String store)
          Sets the keystore..
 void setKeyStorePassword(java.lang.String password)
          Sets the keystore password.
 void setKeyStoreType(java.lang.String type)
          Sets the keystore type.
 void setTrustStore(java.lang.String store)
          Sets the truststore.
 void setTrustStorePassword(java.lang.String password)
          Sets the truststore password.
 void setTrustStoreType(java.lang.String type)
          Sets the truststore type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLProperties

public SSLProperties()
Construct a new SSLProperties.

SSLProperties

public SSLProperties(Properties properties)
              throws ResourceException
Construct a new SSLProperties.
Parameters:
properties - the properties to populate this from
Throws:
ResourceException - if any of the properties are invalid
Method Detail

getKeyStore

public java.lang.String getKeyStore()
Returns the keystore.
Returns:
the keystore, or null if unset

setKeyStore

public void setKeyStore(java.lang.String store)
Sets the keystore..
Parameters:
store - the keystore

getKeyStorePassword

public java.lang.String getKeyStorePassword()
Returns the keystore password.
Returns:
the keystore password, or null if unset

setKeyStorePassword

public void setKeyStorePassword(java.lang.String password)
Sets the keystore password.
Parameters:
password - the keystore password

getKeyStoreType

public java.lang.String getKeyStoreType()
Returns the keystore type.
Returns:
the keystore type, or null if unset

setKeyStoreType

public void setKeyStoreType(java.lang.String type)
Sets the keystore type.
Parameters:
type - the the keystore type

getTrustStore

public java.lang.String getTrustStore()
Returns the truststore.
Returns:
the truststore, or null if unset

setTrustStore

public void setTrustStore(java.lang.String store)
Sets the truststore.
Parameters:
store - the truststore

getTrustStorePassword

public java.lang.String getTrustStorePassword()
Returns the truststore password.
Returns:
the truststore passowrd, or null if unset

setTrustStorePassword

public void setTrustStorePassword(java.lang.String password)
Sets the truststore password.
Parameters:
password - the truststore password

getTrustStoreType

public java.lang.String getTrustStoreType()
Returns the truststore type.
Returns:
the truststore type, or null if unset

setTrustStoreType

public void setTrustStoreType(java.lang.String type)
Sets the truststore type.
Parameters:
type - the the trusstore type

isEmpty

public boolean isEmpty()
Test to see if this instance has been populated.
Returns:
true if this hasn't been populated

equals

public boolean equals(java.lang.Object other)
Checks whether this instance is equal to another.
Overrides:
equals in class java.lang.Object
Parameters:
other - the object to compare
Returns:
true if the two instances are equal; otherwise false

export

public void export(Properties properties)
Helper to export this to a Properties instance.
Parameters:
properties - the properties to export to.


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.