Interface EbicsUser
- All Known Implementing Classes:
User
public interface EbicsUser
Things an EBICS user must be able to perform.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]authenticate(byte[] digest) Signs the given digest with the private X002 key.byte[]decrypt(byte[] encryptedKey, byte[] transactionKey) Uses the E001 key to decrypt the given secret key.byte[]Returns the signature certificate.Returns the public part of the signature key.getDN()Returns the distinguished namebyte[]Returns the encryption certificate.Returns the public part of the encryption key.getName()Returns the user name.Returns the customer in whose name we operate.Returns the password callback handler for the current user.Returns the type to security medium used to store the A005 key.Returns the (bank provided) user id.byte[]Returns the authentication certificate.Return the public part of the transport authentication key.voidsetA005Certificate(X509Certificate a005certificate) Sets the signature certificate.voidsetA005PrivateKey(PrivateKey a005Key) Sets the signature private keyvoidsetE002Certificate(X509Certificate e002certificate) Sets the encryption certificate.voidsetE002PrivateKey(PrivateKey e002Key) Sets the encryption private keyvoidsetX002Certificate(X509Certificate x002certificate) Sets the authentication certificate.voidsetX002PrivateKey(PrivateKey x002Key) Sets the authentication private keybyte[]sign(byte[] digest) Signs the given digest with the private A005 key.
-
Method Details
-
getA005PublicKey
RSAPublicKey getA005PublicKey()Returns the public part of the signature key.- Returns:
- the public part of the signature key.
-
getE002PublicKey
RSAPublicKey getE002PublicKey()Returns the public part of the encryption key.- Returns:
- the public part of the encryption key.
-
getX002PublicKey
RSAPublicKey getX002PublicKey()Return the public part of the transport authentication key.- Returns:
- the public part of the transport authentication key.
-
getA005Certificate
Returns the signature certificate.- Returns:
- the encryption certificate.
- Throws:
EbicsException
-
getX002Certificate
Returns the authentication certificate.- Returns:
- the encryption certificate.
- Throws:
EbicsException
-
getE002Certificate
Returns the encryption certificate.- Returns:
- the encryption certificate.
- Throws:
EbicsException
-
setA005Certificate
Sets the signature certificate.- Parameters:
a005certificate- the signature certificate.
-
setX002Certificate
Sets the authentication certificate.- Parameters:
x002certificate- the authentication certificate.
-
setE002Certificate
Sets the encryption certificate.- Parameters:
e002certificate- the encryption certificate.
-
setA005PrivateKey
Sets the signature private key- Parameters:
a005Key- the signature private key
-
setX002PrivateKey
Sets the authentication private key- Parameters:
x002Key- the authentication private key
-
setE002PrivateKey
Sets the encryption private key- Parameters:
e002Key- the encryption private key
-
getSecurityMedium
String getSecurityMedium()Returns the type to security medium used to store the A005 key.- Returns:
- the type to security medium used to store the A005 key.
-
getPartner
EbicsPartner getPartner()Returns the customer in whose name we operate.- Returns:
- the customer in whose name we operate.
-
getUserId
-
getName
-
getDN
-
getPasswordCallback
PasswordCallback getPasswordCallback()Returns the password callback handler for the current user.- Returns:
- the password callback handler.
-
authenticate
Signs the given digest with the private X002 key.- Parameters:
digest- the given digest- Returns:
- the signature.
- Throws:
GeneralSecurityException
-
sign
Signs the given digest with the private A005 key.- Parameters:
digest-- Returns:
- the signature
- Throws:
IOExceptionGeneralSecurityException
-
decrypt
byte[] decrypt(byte[] encryptedKey, byte[] transactionKey) throws GeneralSecurityException, IOException, EbicsException Uses the E001 key to decrypt the given secret key.- Parameters:
encryptedKey- the given secret keytransactionKey- a given transaction key- Returns:
- the decrypted key;
- Throws:
GeneralSecurityExceptionIOExceptionEbicsException
-