Package com.yubico.yubikit.openpgp
Class OpenPgpAid
java.lang.Object
com.yubico.yubikit.openpgp.OpenPgpAid
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 Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()short16-bit integer value identifying the manufacturer of the device.intThe serial number of the YubiKey.OpenPGP version (tuple of 2 integers: main version, secondary version).
-
Method Details
-
getBytes
public byte[] getBytes() -
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
-