com.iplanet.trustbase.initiator.config
Class ErrorConfigAdapter

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

public class ErrorConfigAdapter
extends PropertyConfigAdapter

Implementation of ConfigAdapter using PropertyConfigAdapter - it is for DSMS testing and should not be instantiated in a correctly configured system.

See Also:
ConfigAdapter, com.iplanet.trustbase.initiator.PropertyConfigAdapter, ConfigAdapterException, ExceptionCodes

Field Summary
static java.lang.String ERROR_PROPERTY
           
 
Constructor Summary
ErrorConfigAdapter()
          Create a blank ErrorConfigAdapter
ErrorConfigAdapter(java.util.Properties properties, java.util.Map objectProperties, java.security.PrivateKey signingKey, java.security.cert.X509Certificate[] signerPath, java.security.cert.X509Certificate[][] verificationPaths)
          Create a ErrorConfigAdapter.
ErrorConfigAdapter(java.util.Properties properties, java.util.Map objectProperties, java.lang.String signingName, java.lang.String[] verificationNames, TokenKeyStore store)
          Create a ErrorConfigAdapter.
ErrorConfigAdapter(java.util.Properties properties, java.security.PrivateKey signingKey, java.security.cert.X509Certificate[] signerPath, java.security.cert.X509Certificate[][] verificationPaths)
          Create a ErrorConfigAdapter.
ErrorConfigAdapter(java.util.Properties properties, java.lang.String signingName, java.lang.String[] verificationNames, TokenKeyStore store)
          Create a ErrorConfigAdapter.
ErrorConfigAdapter(java.util.Properties properties, java.lang.String signingName, java.lang.String sslsigningName, java.lang.String[] verificationNames, TokenKeyStore store)
          Create a ErrorConfigAdapter.
 
Method Summary
 java.lang.Object getObjectProperty(java.lang.String property)
          Returns an object with the given property name 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 private key used in SSL Transactions.
 java.security.cert.X509Certificate[] getSSLSignerPath()
          Get the SSL certificate path to be used in SSL Transactions.
 java.security.cert.X509Certificate[][] getVerificationPaths()
          Get the set of certificate paths that will be used to verify the response message.
 
Methods inherited from class com.iplanet.trustbase.initiator.config.PropertyConfigAdapter
completeChain, completeChain, validateChain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_PROPERTY

public static java.lang.String ERROR_PROPERTY
Constructor Detail

ErrorConfigAdapter

public ErrorConfigAdapter(java.util.Properties properties,
                          java.util.Map objectProperties,
                          java.security.PrivateKey signingKey,
                          java.security.cert.X509Certificate[] signerPath,
                          java.security.cert.X509Certificate[][] verificationPaths)
Create a ErrorConfigAdapter.
Parameters:
properties - the properties object to use
objectProperties - the object properties to use.
signingKey - the private key used to sign the request
signerPath - the certificate path to be included in a request
verificationPaths - the set of certificate paths used to verify the response

ErrorConfigAdapter

public ErrorConfigAdapter(java.util.Properties properties,
                          java.security.PrivateKey signingKey,
                          java.security.cert.X509Certificate[] signerPath,
                          java.security.cert.X509Certificate[][] verificationPaths)
Create a ErrorConfigAdapter.
Parameters:
properties - the properties object to use
signingKey - the private key used to sign the request
signerPath - the certificate path to be included in a request
verificationPaths - the set of certificate paths used to verify the response

ErrorConfigAdapter

public ErrorConfigAdapter(java.util.Properties properties,
                          java.util.Map objectProperties,
                          java.lang.String signingName,
                          java.lang.String[] verificationNames,
                          TokenKeyStore store)
                   throws ConfigAdapterException
Create a ErrorConfigAdapter.
Parameters:
properties - the properties object to use.
signingName - the name of the certificate and key pair to use for signing.
verificationName - the names of the certificate chains to use for verification.
store - the token key store to retrieve the keys and certificates from.
Throws:
ConfigAdapterException - if it cannot access a certificate or key it needs.

ErrorConfigAdapter

public ErrorConfigAdapter(java.util.Properties properties,
                          java.lang.String signingName,
                          java.lang.String[] verificationNames,
                          TokenKeyStore store)
                   throws ConfigAdapterException
Create a ErrorConfigAdapter.
Parameters:
properties - the properties object to use.
signingName - the name of the certificate and key pair to use for signing.
verificationName - the names of the certificate chains to use for verification.
store - the token key store to retrieve the keys and certificates from.
Throws:
ConfigAdapterException - if it cannot access a certificate or key it needs.

ErrorConfigAdapter

public ErrorConfigAdapter(java.util.Properties properties,
                          java.lang.String signingName,
                          java.lang.String sslsigningName,
                          java.lang.String[] verificationNames,
                          TokenKeyStore store)
                   throws ConfigAdapterException
Create a ErrorConfigAdapter.
Parameters:
properties - the properties object to use.
signingName - the name of the certificate and key pair to use for signing.
sslsigningname - the name of the certificate and key pair to use for ssl client transactions.
verificationName - the names of the certificate chains to use for verification.
store - the token key store to retrieve the keys and certificates from.
Throws:
ConfigAdapterException - if it cannot access a certificate or key it needs.

ErrorConfigAdapter

public ErrorConfigAdapter()
Create a blank ErrorConfigAdapter
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String property)
                             throws ConfigAdapterException
Get a property from the system.
Overrides:
getProperty in class PropertyConfigAdapter
Parameters:
property - the name of the property required
Returns:
the value of the property or null if it is not present

getObjectProperty

public java.lang.Object getObjectProperty(java.lang.String property)
                                   throws ConfigAdapterException
Returns an object with the given property name from the system.
Overrides:
getObjectProperty in class PropertyConfigAdapter
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
Get the certificate path that will be included in the request as the signer's certificate path.
Overrides:
getSignerPath in class PropertyConfigAdapter
Returns:
the signing certificate path

getSignerKey

public java.security.PrivateKey getSignerKey()
                                      throws ConfigAdapterException
Get the private key used to sign the request message.
Overrides:
getSignerKey in class PropertyConfigAdapter
Returns:
the signing key

getSSLSignerPath

public java.security.cert.X509Certificate[] getSSLSignerPath()
                                                      throws ConfigAdapterException
Get the SSL certificate path to be used in SSL Transactions.
Overrides:
getSSLSignerPath in class PropertyConfigAdapter
Returns:
the signing certificate path

getSSLSignerKey

public java.security.PrivateKey getSSLSignerKey()
                                         throws ConfigAdapterException
Get the private key used in SSL Transactions.
Overrides:
getSSLSignerKey in class PropertyConfigAdapter
Returns:
the signing key

getVerificationPaths

public java.security.cert.X509Certificate[][] getVerificationPaths()
                                                            throws ConfigAdapterException
Get the set of certificate paths that will be used to verify the response message.
Overrides:
getVerificationPaths in class PropertyConfigAdapter
Returns:
the verification path