Interface CardCertificateParserSpi


public interface CardCertificateParserSpi
SPI dedicated to the creation of card certificates from raw data stored on a card.
Since:
0.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    Returns the certificate type.
    parseCertificate(byte[] cardOutputData)
    Parses the given card output data and creates a new card certificate instance.
  • Method Details

    • getCertificateType

      byte getCertificateType()
      Returns the certificate type.
      Returns:
      A byte.
      Since:
      0.2.0
    • parseCertificate

      CardCertificateSpi parseCertificate(byte[] cardOutputData) throws CertificateValidationException
      Parses the given card output data and creates a new card certificate instance.

      The first byte of the provided byte array is the certificate type.

      Parameters:
      cardOutputData - A byte array containing the card certificate as stored on the card (316 bytes).
      Returns:
      A non-null reference.
      Throws:
      CertificateValidationException - If the provided certificate has an unsupported format.
      Since:
      0.2.0