|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.trustbase.initiator.config.PropertyConfigAdapter
Implementation of ConfigAdapter using a Properties object
ConfigAdapter
,
ConfigAdapterException
,
ExceptionCodes
Constructor Summary | |
|
PropertyConfigAdapter()
Create a blank PropertyConfigAdapter |
|
PropertyConfigAdapter(java.util.Properties properties,
java.util.Map objectProperties,
java.security.PrivateKey signingKey,
java.security.cert.X509Certificate[] signerPath,
java.security.cert.X509Certificate[][] vertificationPaths)
Create a PropertyConfigAdapter. |
|
PropertyConfigAdapter(java.util.Properties properties,
java.util.Map objectProperties,
java.lang.String signingName,
java.lang.String[] verificationNames,
TokenKeyStore store)
Create a PropertyConfigAdapter. |
protected |
PropertyConfigAdapter(java.util.Properties properties,
java.util.Map objectProperties,
java.lang.String signingName,
java.lang.String sslsigningName,
java.lang.String[] verificationNames,
TokenKeyStore store)
|
|
PropertyConfigAdapter(java.util.Properties properties,
java.security.PrivateKey signingKey,
java.security.cert.X509Certificate[] signerPath,
java.security.cert.X509Certificate[][] vertificationPaths)
Create a PropertyConfigAdapter. |
|
PropertyConfigAdapter(java.util.Properties properties,
java.lang.String signingName,
java.lang.String[] verificationNames,
TokenKeyStore store)
Create a PropertyConfigAdapter. |
|
PropertyConfigAdapter(java.util.Properties properties,
java.lang.String signingName,
java.lang.String sslsigningName,
java.lang.String[] verificationNames,
TokenKeyStore store)
Create a PropertyConfigAdapter. |
Method Summary | |
protected java.security.cert.X509Certificate[] |
completeChain(TokenKeyStore store,
java.util.Collection c)
|
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)
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. |
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 |
public PropertyConfigAdapter(java.util.Properties properties, java.util.Map objectProperties, java.security.PrivateKey signingKey, java.security.cert.X509Certificate[] signerPath, java.security.cert.X509Certificate[][] vertificationPaths)
properties
- the properties object to useobjectProperties
- the object properties to use.signingKey
- the private key used to sign the requestsignerPath
- the certificate path to be included in a requestverificationPaths
- the set of certificate paths used to verify the responsepublic PropertyConfigAdapter(java.util.Properties properties, java.security.PrivateKey signingKey, java.security.cert.X509Certificate[] signerPath, java.security.cert.X509Certificate[][] vertificationPaths)
properties
- the properties object to usesigningKey
- the private key used to sign the requestsignerPath
- the certificate path to be included in a requestverificationPaths
- the set of certificate paths used to verify the responsepublic PropertyConfigAdapter(java.util.Properties properties, java.util.Map objectProperties, java.lang.String signingName, java.lang.String[] verificationNames, TokenKeyStore store) throws ConfigAdapterException
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.ConfigAdapterException
- if it cannot access a certificate or key it needs.public PropertyConfigAdapter(java.util.Properties properties, java.lang.String signingName, java.lang.String[] verificationNames, TokenKeyStore store) throws ConfigAdapterException
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.ConfigAdapterException
- if it cannot access a certificate or key it needs.public PropertyConfigAdapter(java.util.Properties properties, java.lang.String signingName, java.lang.String sslsigningName, java.lang.String[] verificationNames, TokenKeyStore store) throws ConfigAdapterException
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.ConfigAdapterException
- if it cannot access a certificate or key it needs.protected PropertyConfigAdapter(java.util.Properties properties, java.util.Map objectProperties, java.lang.String signingName, java.lang.String sslsigningName, java.lang.String[] verificationNames, TokenKeyStore store) throws ConfigAdapterException
public PropertyConfigAdapter()
Method Detail |
public java.lang.String getProperty(java.lang.String property) throws ConfigAdapterException
getProperty
in interface ConfigAdapter
property
- the name of the property requiredpublic java.lang.Object getObjectProperty(java.lang.String property) throws ConfigAdapterException
getObjectProperty
in interface ConfigAdapter
com.iplanet.trustbase.initiator.ConfigAdapter
property
- the name of the property required.ConfigAdapterException
- if the property could not be found
and processing should not continue.public java.security.cert.X509Certificate[] getSignerPath() throws ConfigAdapterException
getSignerPath
in interface ConfigAdapter
public java.security.PrivateKey getSignerKey() throws ConfigAdapterException
getSignerKey
in interface ConfigAdapter
public java.security.cert.X509Certificate[] getSSLSignerPath() throws ConfigAdapterException
getSSLSignerPath
in interface ConfigAdapter
public java.security.PrivateKey getSSLSignerKey() throws ConfigAdapterException
getSSLSignerKey
in interface ConfigAdapter
public java.security.cert.X509Certificate[][] getVerificationPaths() throws ConfigAdapterException
getVerificationPaths
in interface ConfigAdapter
public void validateChain(java.security.cert.X509Certificate[] chain) throws ConfigAdapterException
validateChain
in interface ConfigAdapter
certificateChain
- is the certificate chain to check.public java.security.cert.X509Certificate[] completeChain(java.security.cert.X509Certificate certificate) throws ConfigAdapterException
completeChain
in interface ConfigAdapter
certificate
- The certificate to try and completeConfigException
- if it is unable to complete the chainprotected java.security.cert.X509Certificate[] completeChain(TokenKeyStore store, java.util.Collection c) throws ConfigAdapterException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |