Class OpenPgpAid

java.lang.Object
com.yubico.yubikit.openpgp.OpenPgpAid

public class OpenPgpAid extends Object
OpenPGP Application Identifier (AID) The OpenPGP AID is a string of bytes identifying the OpenPGP application. It also embeds some values which are accessible though properties.
  • Method Details

    • getBytes

      public byte[] getBytes()
    • getVersion

      public com.yubico.yubikit.core.util.Pair<Byte,Byte> getVersion()
      OpenPGP version (tuple of 2 integers: main version, secondary version).
      Returns:
      a Pair of main version, secondary version.
    • getManufacturer

      public short getManufacturer()
      16-bit integer value identifying the manufacturer of the device. This should be 6 for Yubico devices.
      Returns:
      OpenPGP card manufacturer ID.
    • getSerial

      public int getSerial()
      The serial number of the YubiKey.

      NOTE: This value is encoded in BCD. In the event of an invalid value (hex A-F) the entire 4 byte value will instead be decoded as an unsigned integer, and negated.

      Returns:
      The serial number of the YubiKey