Class EbicsSession
java.lang.Object
org.kopi.ebics.session.EbicsSession
Communication hub for EBICS.
-
Constructor Summary
ConstructorsConstructorDescriptionEbicsSession(EbicsUser user, Configuration configuration) Constructs a new ebics session -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSessionParam(String key, String value) Adds a session parameter to use it in the transfer process.Returns the banks encryption key.Returns the bank id.Returns the banks authentication key.Returns the client application configuration.getSessionParam(String key) Retrieves a session parameter using its key.getUser()Return the session user.voidsetProduct(Product product) Sets the optional product identification that will be sent to the bank during each request.
-
Constructor Details
-
EbicsSession
Constructs a new ebics session- Parameters:
user- the ebics userconfiguration- the ebics client configuration
-
-
Method Details
-
getBankE002Key
Returns the banks encryption key. The key will be fetched automatically form the bank if needed.- Returns:
- the banks encryption key.
-
getBankX002Key
Returns the banks authentication key. The key will be fetched automatically form the bank if needed.- Returns:
- the banks authentication key.
-
getBankID
Returns the bank id.- Returns:
- the bank id.
- Throws:
EbicsException
-
getUser
-
getConfiguration
Returns the client application configuration.- Returns:
- the client application configuration.
-
setProduct
Sets the optional product identification that will be sent to the bank during each request.- Parameters:
product- Product description
-
getProduct
- Returns:
- the product
-
addSessionParam
-
getSessionParam
-