com.iplanet.trustbase.initiator.config
Class ConfigAdapterImpl

java.lang.Object
  |
  +--com.iplanet.trustbase.initiator.config.ConfigAdapterImpl
All Implemented Interfaces:
ConfigAdapter

public class ConfigAdapterImpl
extends java.lang.Object
implements ConfigAdapter


Constructor Summary
ConfigAdapterImpl(java.util.Properties props)
           
 
Method Summary
 java.security.cert.X509Certificate[] completeChain(java.security.cert.X509Certificate certificate)
          Completes a chain given a supplied certificate.
 java.lang.Object getObjectProperty(java.lang.String property)
          Get an object property from the system.
 java.lang.String getProperty(java.lang.String property)
          Get a property from the system
 java.security.PrivateKey getSignerKey()
          Get the private key used to sign the request message
 java.security.cert.X509Certificate[] getSignerPath()
          Get the certificate path that will be included in the request as the signer's certificate path.
 java.security.PrivateKey getSSLSignerKey()
          Get the signing key for SSL Client Transactions
 java.security.cert.X509Certificate[] getSSLSignerPath()
          Get the SSL Client Certificate to use for SSL negotiation.
 TokenKeyStore getStore()
           
 java.security.cert.X509Certificate[][] getVerificationPaths()
          Get the set of certificate paths that will be used to verify the response message.
 void validateChain(java.security.cert.X509Certificate[] chain)
          Validate a supplied certificate chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigAdapterImpl

public ConfigAdapterImpl(java.util.Properties props)
                  throws ConfigAdapterException
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String property)
                             throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Get a property from the system
Specified by:
getProperty in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Parameters:
property - the name of the property required
Returns:
the value of the property or null if it is not present
Throws:
ConfigAdapterException - if the property could not be found and processing should not continue.

getObjectProperty

public java.lang.Object getObjectProperty(java.lang.String property)
                                   throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Get an object property from the system. all object properties are optional. A null return signifies that the object is not present in the system.
Specified by:
getObjectProperty in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Parameters:
property - the name of the property required.
Returns:
the value of the property or null if the property is not present in the system.
Throws:
ConfigAdapterException - if the property could not be found and processing should not continue.

getSignerPath

public java.security.cert.X509Certificate[] getSignerPath()
                                                   throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Get the certificate path that will be included in the request as the signer's certificate path. This is the certificate that will be used to sign requests.
Specified by:
getSignerPath in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Returns:
the signing certificate path or null if not found
Throws:
ConfigAdapterException - if the path could not be retrieved and processing should not continue.

getVerificationPaths

public java.security.cert.X509Certificate[][] getVerificationPaths()
                                                            throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Get the set of certificate paths that will be used to verify the response message.
Specified by:
getVerificationPaths in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Returns:
the verification paths or null if not found
Throws:
CSCConfigException - if the paths could not be retrieved and processing should not continue.

getSSLSignerPath

public java.security.cert.X509Certificate[] getSSLSignerPath()
                                                      throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Get the SSL Client Certificate to use for SSL negotiation.
Specified by:
getSSLSignerPath in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Returns:
the SSL client signing certificate chain.
Throws:
ConfigAdapterException - if the certificate chain could not be returned.

getSSLSignerKey

public java.security.PrivateKey getSSLSignerKey()
                                         throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Get the signing key for SSL Client Transactions
Specified by:
getSSLSignerKey in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Returns:
the private for SSL Client signing.
Throws:
ConfigAdapterException - if the key could not be returned.

getSignerKey

public java.security.PrivateKey getSignerKey()
                                      throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Get the private key used to sign the request message
Specified by:
getSignerKey in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Returns:
the signing key or null if not found
Throws:
ConfigAdapterException - if the key could not be retrieved and processing should not continue.

validateChain

public void validateChain(java.security.cert.X509Certificate[] chain)
                   throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Validate a supplied certificate chain.
Specified by:
validateChain in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Parameters:
certificateChain - is the certificate chain to check.

completeChain

public java.security.cert.X509Certificate[] completeChain(java.security.cert.X509Certificate certificate)
                                                   throws ConfigAdapterException
Description copied from interface: ConfigAdapter
Completes a chain given a supplied certificate.
Specified by:
completeChain in interface ConfigAdapter
Following copied from interface: com.iplanet.trustbase.initiator.ConfigAdapter
Parameters:
certificate - The certificate to try and complete
Returns:
The chain
Throws:
ConfigAdapterException - if it is unable to complete the chain

getStore

public TokenKeyStore getStore()