Package org.bouncycastle.gpg.keybox

## Class KeyBlob

- java.lang.Object
- - org.bouncycastle.gpg.keybox.Blob
  - - org.bouncycastle.gpg.keybox.KeyBlob

- Direct Known Subclasses:
    `CertificateBlob`, `PublicKeyRingBlob`

      public class KeyBlob
      extends Blob

  A PGP blob holds key material.

- - ### Field Summary

    - ### Fields inherited from class org.bouncycastle.gpg.keybox.Blob

      `base, length, magicBytes, type, version`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---

    `protected`

    `KeyBlob​(int base, long length, BlobType type, int version, int blobFlags, int keyNumber, java.util.List<KeyInformation> keyInformation, byte[] serialNumber, int numberOfUserIDs, java.util.List<UserID> userIds, int numberOfSignatures, java.util.List<java.lang.Long> expirationTime, int assignedOwnerTrust, int allValidity, long recheckAfter, long newestTimestamp, long blobCreatedAt, byte[] keyBytes, byte[] reserveBytes, byte[] checksum)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `getAllValidity()` |
    `int` | `getAssignedOwnerTrust()` |
    `long` | `getBlobCreatedAt()` |
    `int` | `getBlobFlags()` |
    `byte[]` | `getChecksum()` |
    `java.util.List<java.lang.Long>` | `getExpirationTime()` |
    `byte[]` | `getKeyBytes()` |
    `java.util.List<KeyInformation>` | `getKeyInformation()` |
    `int` | `getKeyNumber()` |
    `long` | `getNewestTimestamp()` |
    `int` | `getNumberOfSignatures()` |
    `int` | `getNumberOfUserIDs()` |
    `long` | `getRecheckAfter()` |
    `byte[]` | `getReserveBytes()` |
    `byte[]` | `getSerialNumber()` |
    `java.util.List<UserID>` | `getUserIds()` |

    - ### Methods inherited from class org.bouncycastle.gpg.keybox.Blob

      `getType, getVersion`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### KeyBlob

          protected KeyBlob​(int base,
                            long length,
                            BlobType type,
                            int version,
                            int blobFlags,
                            int keyNumber,
                            java.util.List<KeyInformation> keyInformation,
                            byte[] serialNumber,
                            int numberOfUserIDs,
                            java.util.List<UserID> userIds,
                            int numberOfSignatures,
                            java.util.List<java.lang.Long> expirationTime,
                            int assignedOwnerTrust,
                            int allValidity,
                            long recheckAfter,
                            long newestTimestamp,
                            long blobCreatedAt,
                            byte[] keyBytes,
                            byte[] reserveBytes,
                            byte[] checksum)

  - ### Method Detail

    - #### getBlobFlags

          public int getBlobFlags()

    - #### getKeyNumber

          public int getKeyNumber()

    - #### getKeyInformation

          public java.util.List<KeyInformation> getKeyInformation()

    - #### getSerialNumber

          public byte[] getSerialNumber()

    - #### getNumberOfUserIDs

          public int getNumberOfUserIDs()

    - #### getUserIds

          public java.util.List<UserID> getUserIds()

    - #### getNumberOfSignatures

          public int getNumberOfSignatures()

    - #### getExpirationTime

          public java.util.List<java.lang.Long> getExpirationTime()

    - #### getAssignedOwnerTrust

          public int getAssignedOwnerTrust()

    - #### getAllValidity

          public int getAllValidity()

    - #### getRecheckAfter

          public long getRecheckAfter()

    - #### getNewestTimestamp

          public long getNewestTimestamp()

    - #### getBlobCreatedAt

          public long getBlobCreatedAt()

    - #### getKeyBytes

          public byte[] getKeyBytes()

    - #### getReserveBytes

          public byte[] getReserveBytes()

    - #### getChecksum

          public byte[] getChecksum()