Interface CaCertificateParserSpi


public interface CaCertificateParserSpi
SPI dedicated to the creation of CA 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 CA certificate instance.
  • Method Details

    • getCertificateType

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

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

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

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