Class Bank
java.lang.Object
org.kopi.ebics.client.Bank
- All Implemented Interfaces:
Serializable, EbicsBank, Savable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the encryption key digest you have obtained from the bank.Returns the banks encryption key.Returns the bank's id.getName()Returns the bank's name.Returns the save name of this savable object.getURL()Returns the URL needed for communication to the bank.byte[]Returns the authentication key digest you have obtained from the bank.Returns the banks authentication key.booleanDid any persistent attribute change since last load/save operation.voidsave(ObjectOutputStream oos) Writes all persistable attributes to the given stream.voidsetBankKeys(RSAPublicKey e002Key, RSAPublicKey x002Key) Keys have been fetched from the bank.voidsetDigests(byte[] e002Digest, byte[] x002Digest) Sets the bank digests.
-
Constructor Details
-
Bank
-
-
Method Details
-
save
Description copied from interface:SavableWrites all persistable attributes to the given stream.- Specified by:
savein interfaceSavable- Parameters:
oos- the given stream.- Throws:
IOException- save process failed
-
needsSave
public boolean needsSave()Did any persistent attribute change since last load/save operation.- Returns:
- True if the object needs to be saved.
-
getURL
-
getE002Digest
public byte[] getE002Digest()Description copied from interface:EbicsBankReturns the encryption key digest you have obtained from the bank. Ensure that nobody was able to modify the digest on its way from the bank to you.- Specified by:
getE002Digestin interfaceEbicsBank- Returns:
- the encryption key digest you have obtained from the bank.
-
getX002Digest
public byte[] getX002Digest()Description copied from interface:EbicsBankReturns the authentication key digest you have obtained from the bank. Ensure that nobody was able to modify the digest on its way from the bank to you.- Specified by:
getX002Digestin interfaceEbicsBank- Returns:
- the authentication key digest you have obtained from the bank.
-
getE002Key
Description copied from interface:EbicsBankReturns the banks encryption key.- Specified by:
getE002Keyin interfaceEbicsBank- Returns:
- the banks encryption key.
-
getX002Key
Description copied from interface:EbicsBankReturns the banks authentication key.- Specified by:
getX002Keyin interfaceEbicsBank- Returns:
- the banks authentication key.
-
getHostId
-
getName
-
setBankKeys
Description copied from interface:EbicsBankKeys have been fetched from the bank. The getters for the appropriate attributes should return the given values from now on. For the sake of performance the values should be persisted for later usage.- Specified by:
setBankKeysin interfaceEbicsBank- Parameters:
e002Key- the banks encryption key.x002Key- the banks authentication key.
-
setDigests
public void setDigests(byte[] e002Digest, byte[] x002Digest) Description copied from interface:EbicsBankSets the bank digests.- Specified by:
setDigestsin interfaceEbicsBank- Parameters:
e002Digest- encryption digestx002Digest- authentication digest
-
getSaveName
Description copied from interface:SavableReturns the save name of this savable object.- Specified by:
getSaveNamein interfaceSavable- Returns:
- the save name
-