Interface SignatureVerificationData<T extends SignatureVerificationData<T>>

Type Parameters:
T - The type of the lowest level child object.
All Known Subinterfaces:
BasicSignatureVerificationData, TraceableSignatureVerificationData

public interface SignatureVerificationData<T extends SignatureVerificationData<T>>
Contains the input/output data of the FreeTransactionManager.prepareVerifySignature(SignatureVerificationData) method for common signature verification modes.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the result of the signature verification process by indicating if the signature is valid or not.
    setData(byte[] data, byte[] signature, byte kif, byte kvc)
    Sets the signed data, the associated signature and the KIF/KVC of the key to be used for the signature verification.
    setKeyDiversifier(byte[] diversifier)
    Sets a specific key diversifier to use before verifying the signature (optional).
  • Method Details

    • setData

      T setData(byte[] data, byte[] signature, byte kif, byte kvc)
      Sets the signed data, the associated signature and the KIF/KVC of the key to be used for the signature verification.
      Parameters:
      data - The signed data.
      signature - The associated signature.
      kif - The KIF of the key to be used for the signature verification.
      kvc - The KVC of the key to be used for the signature verification.
      Returns:
      The current instance.
      Since:
      0.1.0
    • setKeyDiversifier

      T setKeyDiversifier(byte[] diversifier)
      Sets a specific key diversifier to use before verifying the signature (optional).

      By default, the key diversification is performed with the full serial number of the target card or SAM depending on the transaction context (Card or SAM transaction).

      Parameters:
      diversifier - The diversifier to be used (from 1 to 8 bytes long).
      Returns:
      The current instance.
      Since:
      0.1.0
    • isSignatureValid

      boolean isSignatureValid()
      Returns the result of the signature verification process by indicating if the signature is valid or not.
      Returns:
      True if the signature is valid.
      Throws:
      IllegalStateException - If the command has not yet been processed.
      Since:
      0.1.0