Class KeyManagement
java.lang.Object
org.kopi.ebics.client.KeyManagement
Everything that has to do with key handling.
If you have a totally new account use
sendINI() and sendHIA() to send you newly created keys to the bank.
Then wait until the bank activated your keys.
If you are migrating from FTAM. Just send HPB, your EBICS account should be usable without delay.-
Constructor Summary
ConstructorsConstructorDescriptionKeyManagement(EbicsSession session) Constructs a newKeyManagementinstance with a given ebics session -
Method Summary
Modifier and TypeMethodDescriptionvoidSends the SPR order to the bank.voidSends the public part of the protocol keys to the bank.voidsendHPB()Sends encryption and authentication keys to the bank.voidSends the user's signature key (A005) to the bank.
-
Constructor Details
-
KeyManagement
Constructs a newKeyManagementinstance with a given ebics session- Parameters:
session- the ebics session
-
-
Method Details
-
sendINI
Sends the user's signature key (A005) to the bank. After successful operation the user is in state "initialized".- Parameters:
orderId- the order ID. Let it null to generate a random one.- Throws:
EbicsException- server generated error messageIOException- communication error
-
sendHIA
Sends the public part of the protocol keys to the bank.- Parameters:
orderId- the order ID. Let it null to generate a random one.- Throws:
IOException- communication errorEbicsException- server generated error message
-
sendHPB
Sends encryption and authentication keys to the bank. This order is only allowed for a new user at the bank side that has been created by copying the A005 key. The keys will be activated immediately after successful completion of the transfer.- Throws:
IOException- communication errorGeneralSecurityException- data decryption errorEbicsException- server generated error message
-
lockAccess
Sends the SPR order to the bank. After that you have to start over with sending INI and HIA.- Throws:
IOException- Communication exceptionEbicsException- Error message generated by the bank.
-