Interface EbicsUser

All Known Implementing Classes:
User

public interface EbicsUser
Things an EBICS user must be able to perform.
  • 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

      byte[] getA005Certificate() throws EbicsException
      Returns the signature certificate.
      Returns:
      the encryption certificate.
      Throws:
      EbicsException
    • getX002Certificate

      byte[] getX002Certificate() throws EbicsException
      Returns the authentication certificate.
      Returns:
      the encryption certificate.
      Throws:
      EbicsException
    • getE002Certificate

      byte[] getE002Certificate() throws EbicsException
      Returns the encryption certificate.
      Returns:
      the encryption certificate.
      Throws:
      EbicsException
    • setA005Certificate

      void setA005Certificate(X509Certificate a005certificate)
      Sets the signature certificate.
      Parameters:
      a005certificate - the signature certificate.
    • setX002Certificate

      void setX002Certificate(X509Certificate x002certificate)
      Sets the authentication certificate.
      Parameters:
      x002certificate - the authentication certificate.
    • setE002Certificate

      void setE002Certificate(X509Certificate e002certificate)
      Sets the encryption certificate.
      Parameters:
      e002certificate - the encryption certificate.
    • setA005PrivateKey

      void setA005PrivateKey(PrivateKey a005Key)
      Sets the signature private key
      Parameters:
      a005Key - the signature private key
    • setX002PrivateKey

      void setX002PrivateKey(PrivateKey x002Key)
      Sets the authentication private key
      Parameters:
      x002Key - the authentication private key
    • setE002PrivateKey

      void setE002PrivateKey(PrivateKey e002Key)
      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

      String getUserId()
      Returns the (bank provided) user id.
      Returns:
      the (bank provided) user id.
    • getName

      String getName()
      Returns the user name.
      Returns:
      the user name.
    • getDN

      String getDN()
      Returns the distinguished name
      Returns:
      the distinguished name
    • getPasswordCallback

      PasswordCallback getPasswordCallback()
      Returns the password callback handler for the current user.
      Returns:
      the password callback handler.
    • authenticate

      byte[] authenticate(byte[] digest) throws GeneralSecurityException
      Signs the given digest with the private X002 key.
      Parameters:
      digest - the given digest
      Returns:
      the signature.
      Throws:
      GeneralSecurityException
    • sign

      byte[] sign(byte[] digest) throws IOException, GeneralSecurityException
      Signs the given digest with the private A005 key.
      Parameters:
      digest -
      Returns:
      the signature
      Throws:
      IOException
      GeneralSecurityException
    • 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 key
      transactionKey - a given transaction key
      Returns:
      the decrypted key;
      Throws:
      GeneralSecurityException
      IOException
      EbicsException