Class EbicsSession

java.lang.Object
org.kopi.ebics.session.EbicsSession

public class EbicsSession extends Object
Communication hub for EBICS.
  • Constructor Details

    • EbicsSession

      public EbicsSession(EbicsUser user, Configuration configuration)
      Constructs a new ebics session
      Parameters:
      user - the ebics user
      configuration - the ebics client configuration
  • Method Details

    • getBankE002Key

      public RSAPublicKey getBankE002Key()
      Returns the banks encryption key. The key will be fetched automatically form the bank if needed.
      Returns:
      the banks encryption key.
    • getBankX002Key

      public RSAPublicKey getBankX002Key()
      Returns the banks authentication key. The key will be fetched automatically form the bank if needed.
      Returns:
      the banks authentication key.
    • getBankID

      public String getBankID() throws EbicsException
      Returns the bank id.
      Returns:
      the bank id.
      Throws:
      EbicsException
    • getUser

      public EbicsUser getUser()
      Return the session user.
      Returns:
      the session user.
    • getConfiguration

      public Configuration getConfiguration()
      Returns the client application configuration.
      Returns:
      the client application configuration.
    • setProduct

      public void setProduct(Product product)
      Sets the optional product identification that will be sent to the bank during each request.
      Parameters:
      product - Product description
    • getProduct

      public Product getProduct()
      Returns:
      the product
    • addSessionParam

      public void addSessionParam(String key, String value)
      Adds a session parameter to use it in the transfer process.
      Parameters:
      key - the parameter key
      value - the parameter value
    • getSessionParam

      public String getSessionParam(String key)
      Retrieves a session parameter using its key.
      Parameters:
      key - the parameter key
      Returns:
      the session parameter