Top Description Fields Constructors Methods
org.bouncycastle.gpg.keybox

public Class PublicKeyRingBlob

extends KeyBlob
Class Inheritance
Imports
java.io.IOException, java.util.ArrayList, .List, org.bouncycastle.openpgp.PGPPublicKeyRing, org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator

A PGP blob holds key material.

Field Summary

Modifier and TypeField and Description
private final KeyFingerPrintCalculator

Constructor Summary

AccessConstructor and Description
private
PublicKeyRingBlob(int base, long length, BlobType type, int version, int blobFlags, int keyNumber, List<KeyInformation> keyInformation, byte[] serialNumber, int numberOfUserIDs, List<UserID> userIds, int numberOfSignatures, List<Long> expirationTime, int assignedOwnerTrust, int allValidity, long recheckAfter, long newestTimestamp, long blobCreatedAt, byte[] keyBytes, byte[] reserveBytes, byte[] sha1Checksum, KeyFingerPrintCalculator fingerPrintCalculator)

Method Summary

Modifier and TypeMethod and Description
public PGPPublicKeyRing

Returns:

A new PGPPublicKeyRing based on the blobs raw data.
getPGPPublicKeyRing
()

Return the gpg public key ring from the key box blob.

pack-priv static Blob
parseContent(int base, long length, BlobType type, int version, KeyBoxByteBuffer buffer, KeyFingerPrintCalculator fingerPrintCalculator, BlobVerifier blobVerifier)

Inherited from org.bouncycastle.gpg.keybox.KeyBlob:
getAllValiditygetAssignedOwnerTrustgetBlobCreatedAtgetBlobFlagsgetChecksumgetExpirationTimegetKeyBytesgetKeyInformationgetKeyNumbergetNewestTimestampgetNumberOfSignaturesgetNumberOfUserIDsgetRecheckAftergetReserveBytesgetSerialNumbergetUserIdsverifyDigest

Field Detail

fingerPrintCalculatorback to summary
private final KeyFingerPrintCalculator fingerPrintCalculator

Constructor Detail

PublicKeyRingBlobback to summary
private PublicKeyRingBlob(int base, long length, BlobType type, int version, int blobFlags, int keyNumber, List<KeyInformation> keyInformation, byte[] serialNumber, int numberOfUserIDs, List<UserID> userIds, int numberOfSignatures, List<Long> expirationTime, int assignedOwnerTrust, int allValidity, long recheckAfter, long newestTimestamp, long blobCreatedAt, byte[] keyBytes, byte[] reserveBytes, byte[] sha1Checksum, KeyFingerPrintCalculator fingerPrintCalculator)

Method Detail

getPGPPublicKeyRingback to summary
public PGPPublicKeyRing getPGPPublicKeyRing() throws IOException

Return the gpg public key ring from the key box blob.

Returns:PGPPublicKeyRing

A new PGPPublicKeyRing based on the blobs raw data.

Exceptions
IOException:
if the data cannot be parsed.
IllegalStateException:
if the blob is not BlobType.OPEN_PGP_BLOB
parseContentback to summary
pack-priv static Blob parseContent(int base, long length, BlobType type, int version, KeyBoxByteBuffer buffer, KeyFingerPrintCalculator fingerPrintCalculator, BlobVerifier blobVerifier) throws IOException