Class PTEID_PublicKey

java.lang.Object
pt.gov.cartaodecidadao.PTEID_Object
pt.gov.cartaodecidadao.PTEID_PublicKey

public class PTEID_PublicKey extends PTEID_Object
Class that represents the card authentication public key - to be used in a mutual authentication process (1024 bit
RSA key) This key is totally unrelated to the citizen authentication key which is present in the authentication
certificate
  • Method Details

    • delete

      public void delete()
      Overrides:
      delete in class PTEID_Object
    • getCardAuthKeyModulus

      public PTEID_ByteArray getCardAuthKeyModulus()
      Return the RSA public key module if this object contains an RSA public key
    • getCardAuthKeyExponent

      public PTEID_ByteArray getCardAuthKeyExponent()
      Return the RSA public key exponent if this object contains an RSA public key
    • isECCPublicKey

      public boolean isECCPublicKey()
      Return true if this object contains an Elliptic Curve public key instead of RSA
    • getCardAuthECCKey

      public PTEID_ByteArray getCardAuthECCKey()
      Return the EC public key data in uncompressed format. This is only applicable for objects coming from PTEID_CARDTYPE_IAS5 cards.
    • getECCCurveIdentifier

      public PTEID_ECC_CurveIdentifier getECCCurveIdentifier()