|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.configuration.XMLConfiguration
org.osesb.configuration.EncryptionProviderConfiguration
public class EncryptionProviderConfiguration
Parses a encryption configuration content model in a XML configuration file and sets configurationProperties. Contains convenience methods for accessing encryption properties.
A EncryptionProviderConfiguration content model looks like:<encryption-provider-configuration>
<providerClassName>com.sun.crypto.provider.SunJCE</providerClassName>
<encryptionAlgorithm>DES</encryptionAlgorithm>
<keyFilePath>org/osesb/utilities/encryption/test/testdata/jce.des.encryption.test.key</keyFilePath>
</encryption-provider-configuration>
| Field Summary |
|---|
| Fields inherited from class org.osesb.configuration.XMLConfiguration |
|---|
configFilePath, configurationProperties, constructedFromConfigFile, contentModelElement, ftpClientConfiguration, jaxrpcClientConfiguration, jdbcConfiguration, jmsClientConfiguration, log, rootConfigurationAttributes, smtpClientConfiguration, systemProperties, thisClassName |
| Constructor Summary | |
|---|---|
EncryptionProviderConfiguration(org.w3c.dom.Element contentModelElement)
Creates a new instance of EncryptionProviderConfiguration given the content model Element. |
|
EncryptionProviderConfiguration(java.util.Properties configurationProperties)
Creates a new instance of EncryptionProviderConfiguration given the configuration Properties. |
|
EncryptionProviderConfiguration(java.lang.String configFile)
Creates a new instance of EncryptionProviderConfiguration given a XML configuration file. |
|
EncryptionProviderConfiguration(java.lang.String configFile,
java.lang.String xpathExpression)
Creates a new instance of EncryptionProviderConfiguration given a XML configuration file and a XPath expression that evaluates to the element that marks the beginning of the configuration. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEncryptionAlgorithmName()
Returns the name of the encryptionAlgorithm of the encryptionProviderConfiguration. |
java.lang.String |
getEncryptionProviderClassName()
Returns the providerClassName of the encryptionProviderConfiguration. |
java.lang.String |
getKeyFilePath()
Returns the path to the encryption key file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EncryptionProviderConfiguration(java.lang.String configFile)
throws java.lang.Exception
configFile - The path to the XML configuration file, which
is specified as a resource path or as a file system
path that is relative to the path specified
by the ConfigurationConstants.CONFIG_PATH_SYSTEMPROPERTY
System Property.
java.lang.Exception - if there is a problem reading or parsing the
configuration file.
public EncryptionProviderConfiguration(java.lang.String configFile,
java.lang.String xpathExpression)
throws java.lang.Exception
configFile - The path to the XML configuration file, which
is specified as a resource path or as a file system
path that is relative to the path specified
by the ConfigurationConstants.CONFIG_PATH_SYSTEMPROPERTY
System Property.xpathExpression - A XPath expression that evaluates to the
element that marks the beginning of the
configuration. If following the framework
convention for EncryptionProviderConfiguration(s),
xpathExpression should have 'encryption-provider-configuration'
as the last Element in the path.
java.lang.Exception - if there is a problem reading or parsing the
configuration file.
public EncryptionProviderConfiguration(org.w3c.dom.Element contentModelElement)
throws java.lang.Exception
contentModelElement - The top level Element for the
for the configuration.
java.lang.Exception - if there is a fatal error transversing the
configuration content model enclosed by contentModelElement.public EncryptionProviderConfiguration(java.util.Properties configurationProperties)
configurationProperties - Configuration name / value pairs as Properties.| Method Detail |
|---|
public java.lang.String getEncryptionProviderClassName()
public java.lang.String getEncryptionAlgorithmName()
public java.lang.String getKeyFilePath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||