Class DefaultConfiguration
java.lang.Object
org.kopi.ebics.session.DefaultConfiguration
- All Implemented Interfaces:
Configuration
A simple client application configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultConfiguration(File rootDir, Properties properties) Creates a new application configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the client application authentication versionReturns the EBICS configuration file.Returns the client application encryption versionReturns the directory path of the key store that contains bank and user certificates.Returns the letter manager.getLettersDirectory(EbicsUser user) Returns the initializations letters directory.Returns the application locale.getProperty(String key) Returns the property value of a given key from the configuration fileintReturns the default revision of sent XML.Returns the root directory of the client application.Returns the object serialization directory.Returns the Ebics client serialization manager.Returns the client application signature versionReturns the SSL bank server certificates.Return the SSL key store directoryReturns the SSL trusted store directory.Returns the Ebics client trace manager.Returns the directory path that contains the traces XML transfer files.getUserDirectory(EbicsUser user) Returns the users directory.Returns the users directory.Returns the version of the EBICS protocol used by the client.voidinit()Configuration initialization.booleanReturns if the files to be transferred should be compressed or sent without compression.booleanTells if the client application should keep XML transfer files in the transfer log directory
-
Constructor Details
-
DefaultConfiguration
Creates a new application configuration.- Parameters:
rootDir- the root directory
-
-
Method Details
-
getRootDirectory
Description copied from interface:ConfigurationReturns the root directory of the client application.- Specified by:
getRootDirectoryin interfaceConfiguration- Returns:
- the root directory of the client application.
-
init
public void init()Description copied from interface:ConfigurationConfiguration initialization. Creates the necessary directories for the ebics configuration.- Specified by:
initin interfaceConfiguration
-
getLocale
Description copied from interface:ConfigurationReturns the application locale.- Specified by:
getLocalein interfaceConfiguration- Returns:
- the application locale.
-
getConfigurationFile
Description copied from interface:ConfigurationReturns the EBICS configuration file.- Specified by:
getConfigurationFilein interfaceConfiguration- Returns:
- the EBICS configuration file.
-
getProperty
Description copied from interface:ConfigurationReturns the property value of a given key from the configuration file- Specified by:
getPropertyin interfaceConfiguration- Parameters:
key- the given key- Returns:
- the property value
-
getKeystoreDirectory
Description copied from interface:ConfigurationReturns the directory path of the key store that contains bank and user certificates.- Specified by:
getKeystoreDirectoryin interfaceConfiguration- Parameters:
user- the ebics user.- Returns:
- the key store directory of a given user.
-
getTransferTraceDirectory
Description copied from interface:ConfigurationReturns the directory path that contains the traces XML transfer files.- Specified by:
getTransferTraceDirectoryin interfaceConfiguration- Parameters:
user- the ebics user- Returns:
- the transfer trace directory
-
getSerializationDirectory
Description copied from interface:ConfigurationReturns the object serialization directory.- Specified by:
getSerializationDirectoryin interfaceConfiguration- Returns:
- the object serialization directory.
-
getSSLTrustedStoreDirectory
Description copied from interface:ConfigurationReturns the SSL trusted store directory.- Specified by:
getSSLTrustedStoreDirectoryin interfaceConfiguration- Returns:
- the SSL trusted store directory.
-
getSSLKeyStoreDirectory
Description copied from interface:ConfigurationReturn the SSL key store directory- Specified by:
getSSLKeyStoreDirectoryin interfaceConfiguration- Returns:
- the SSL key store directory
-
getSSLBankCertificates
Description copied from interface:ConfigurationReturns the SSL bank server certificates.- Specified by:
getSSLBankCertificatesin interfaceConfiguration- Returns:
- the SSL bank server certificates.
-
getUsersDirectory
Description copied from interface:ConfigurationReturns the users directory.- Specified by:
getUsersDirectoryin interfaceConfiguration- Returns:
- the users directory.
-
getSerializationManager
Description copied from interface:ConfigurationReturns the Ebics client serialization manager.- Specified by:
getSerializationManagerin interfaceConfiguration- Returns:
- the Ebics client serialization manager.
-
getTraceManager
Description copied from interface:ConfigurationReturns the Ebics client trace manager.- Specified by:
getTraceManagerin interfaceConfiguration- Returns:
- the Ebics client trace manager.
-
getLetterManager
Description copied from interface:ConfigurationReturns the letter manager.- Specified by:
getLetterManagerin interfaceConfiguration- Returns:
- the letter manager.
-
getLettersDirectory
Description copied from interface:ConfigurationReturns the initializations letters directory.- Specified by:
getLettersDirectoryin interfaceConfiguration- Returns:
- the initializations letters directory.
-
getUserDirectory
Description copied from interface:ConfigurationReturns the users directory.- Specified by:
getUserDirectoryin interfaceConfiguration- Returns:
- the users directory.
-
getSignatureVersion
Description copied from interface:ConfigurationReturns the client application signature version- Specified by:
getSignatureVersionin interfaceConfiguration- Returns:
- the signature version
-
getAuthenticationVersion
Description copied from interface:ConfigurationReturns the client application authentication version- Specified by:
getAuthenticationVersionin interfaceConfiguration- Returns:
- the authentication version
-
getEncryptionVersion
Description copied from interface:ConfigurationReturns the client application encryption version- Specified by:
getEncryptionVersionin interfaceConfiguration- Returns:
- the encryption version
-
isTraceEnabled
public boolean isTraceEnabled()Description copied from interface:ConfigurationTells if the client application should keep XML transfer files in the transfer log directory- Specified by:
isTraceEnabledin interfaceConfiguration- Returns:
- True if the client application should not delete the XML transfer files
-
isCompressionEnabled
public boolean isCompressionEnabled()Description copied from interface:ConfigurationReturns if the files to be transferred should be compressed or sent without compression. This can affect the time of data upload especially for big files- Specified by:
isCompressionEnabledin interfaceConfiguration- Returns:
- true if the file compression is enabled
-
getRevision
public int getRevision()Description copied from interface:ConfigurationReturns the default revision of sent XML.- Specified by:
getRevisionin interfaceConfiguration- Returns:
- the default revision of sent XML.
-
getVersion
Description copied from interface:ConfigurationReturns the version of the EBICS protocol used by the client.- Specified by:
getVersionin interfaceConfiguration- Returns:
- the version of the EBICS protocol.
-