Package org.bouncycastle.gpg.keybox

## Class PublicKeyRingBlob

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

-     public class PublicKeyRingBlob
      extends KeyBlob

  A PGP blob holds key material.

- - ### Field Summary

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

      `base, length, magicBytes, type, version`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `PGPPublicKeyRing` | `getPGPPublicKeyRing()` | Return the gpg public key ring from the key box blob.

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

      `getAllValidity, getAssignedOwnerTrust, getBlobCreatedAt, getBlobFlags, getChecksum, getExpirationTime, getKeyBytes, getKeyInformation, getKeyNumber, getNewestTimestamp, getNumberOfSignatures, getNumberOfUserIDs, getRecheckAfter, getReserveBytes, getSerialNumber, 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`

- - ### Method Detail

    - #### getPGPPublicKeyRing

          public PGPPublicKeyRing getPGPPublicKeyRing()
                                               throws java.io.IOException

      Return the gpg public key ring from the key box blob.
      Returns:
        A new PGPPublicKeyRing based on the blobs raw data.
      Throws:
        `java.io.IOException` - if the data cannot be parsed.
        `java.lang.IllegalStateException` - if the blob is not BlobType.OPEN_PGP_BLOB