Class DefaultConfiguration

java.lang.Object
org.kopi.ebics.session.DefaultConfiguration
All Implemented Interfaces:
Configuration

public class DefaultConfiguration extends Object implements Configuration
A simple client application configuration.
  • Constructor Details

    • DefaultConfiguration

      public DefaultConfiguration(File rootDir, Properties properties)
      Creates a new application configuration.
      Parameters:
      rootDir - the root directory
  • Method Details

    • getRootDirectory

      public File getRootDirectory()
      Description copied from interface: Configuration
      Returns the root directory of the client application.
      Specified by:
      getRootDirectory in interface Configuration
      Returns:
      the root directory of the client application.
    • init

      public void init()
      Description copied from interface: Configuration
      Configuration initialization. Creates the necessary directories for the ebics configuration.
      Specified by:
      init in interface Configuration
    • getLocale

      public Locale getLocale()
      Description copied from interface: Configuration
      Returns the application locale.
      Specified by:
      getLocale in interface Configuration
      Returns:
      the application locale.
    • getConfigurationFile

      public File getConfigurationFile()
      Description copied from interface: Configuration
      Returns the EBICS configuration file.
      Specified by:
      getConfigurationFile in interface Configuration
      Returns:
      the EBICS configuration file.
    • getProperty

      public String getProperty(String key)
      Description copied from interface: Configuration
      Returns the property value of a given key from the configuration file
      Specified by:
      getProperty in interface Configuration
      Parameters:
      key - the given key
      Returns:
      the property value
    • getKeystoreDirectory

      public File getKeystoreDirectory(EbicsUser user)
      Description copied from interface: Configuration
      Returns the directory path of the key store that contains bank and user certificates.
      Specified by:
      getKeystoreDirectory in interface Configuration
      Parameters:
      user - the ebics user.
      Returns:
      the key store directory of a given user.
    • getTransferTraceDirectory

      public File getTransferTraceDirectory(EbicsUser user)
      Description copied from interface: Configuration
      Returns the directory path that contains the traces XML transfer files.
      Specified by:
      getTransferTraceDirectory in interface Configuration
      Parameters:
      user - the ebics user
      Returns:
      the transfer trace directory
    • getSerializationDirectory

      public File getSerializationDirectory()
      Description copied from interface: Configuration
      Returns the object serialization directory.
      Specified by:
      getSerializationDirectory in interface Configuration
      Returns:
      the object serialization directory.
    • getSSLTrustedStoreDirectory

      public File getSSLTrustedStoreDirectory()
      Description copied from interface: Configuration
      Returns the SSL trusted store directory.
      Specified by:
      getSSLTrustedStoreDirectory in interface Configuration
      Returns:
      the SSL trusted store directory.
    • getSSLKeyStoreDirectory

      public File getSSLKeyStoreDirectory()
      Description copied from interface: Configuration
      Return the SSL key store directory
      Specified by:
      getSSLKeyStoreDirectory in interface Configuration
      Returns:
      the SSL key store directory
    • getSSLBankCertificates

      public File getSSLBankCertificates()
      Description copied from interface: Configuration
      Returns the SSL bank server certificates.
      Specified by:
      getSSLBankCertificates in interface Configuration
      Returns:
      the SSL bank server certificates.
    • getUsersDirectory

      public File getUsersDirectory()
      Description copied from interface: Configuration
      Returns the users directory.
      Specified by:
      getUsersDirectory in interface Configuration
      Returns:
      the users directory.
    • getSerializationManager

      public SerializationManager getSerializationManager()
      Description copied from interface: Configuration
      Returns the Ebics client serialization manager.
      Specified by:
      getSerializationManager in interface Configuration
      Returns:
      the Ebics client serialization manager.
    • getTraceManager

      public TraceManager getTraceManager()
      Description copied from interface: Configuration
      Returns the Ebics client trace manager.
      Specified by:
      getTraceManager in interface Configuration
      Returns:
      the Ebics client trace manager.
    • getLetterManager

      public LetterManager getLetterManager()
      Description copied from interface: Configuration
      Returns the letter manager.
      Specified by:
      getLetterManager in interface Configuration
      Returns:
      the letter manager.
    • getLettersDirectory

      public File getLettersDirectory(EbicsUser user)
      Description copied from interface: Configuration
      Returns the initializations letters directory.
      Specified by:
      getLettersDirectory in interface Configuration
      Returns:
      the initializations letters directory.
    • getUserDirectory

      public File getUserDirectory(EbicsUser user)
      Description copied from interface: Configuration
      Returns the users directory.
      Specified by:
      getUserDirectory in interface Configuration
      Returns:
      the users directory.
    • getSignatureVersion

      public String getSignatureVersion()
      Description copied from interface: Configuration
      Returns the client application signature version
      Specified by:
      getSignatureVersion in interface Configuration
      Returns:
      the signature version
    • getAuthenticationVersion

      public String getAuthenticationVersion()
      Description copied from interface: Configuration
      Returns the client application authentication version
      Specified by:
      getAuthenticationVersion in interface Configuration
      Returns:
      the authentication version
    • getEncryptionVersion

      public String getEncryptionVersion()
      Description copied from interface: Configuration
      Returns the client application encryption version
      Specified by:
      getEncryptionVersion in interface Configuration
      Returns:
      the encryption version
    • isTraceEnabled

      public boolean isTraceEnabled()
      Description copied from interface: Configuration
      Tells if the client application should keep XML transfer files in the transfer log directory
      Specified by:
      isTraceEnabled in interface Configuration
      Returns:
      True if the client application should not delete the XML transfer files
    • isCompressionEnabled

      public boolean isCompressionEnabled()
      Description copied from interface: Configuration
      Returns 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:
      isCompressionEnabled in interface Configuration
      Returns:
      true if the file compression is enabled
    • getRevision

      public int getRevision()
      Description copied from interface: Configuration
      Returns the default revision of sent XML.
      Specified by:
      getRevision in interface Configuration
      Returns:
      the default revision of sent XML.
    • getVersion

      public String getVersion()
      Description copied from interface: Configuration
      Returns the version of the EBICS protocol used by the client.
      Specified by:
      getVersion in interface Configuration
      Returns:
      the version of the EBICS protocol.