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

public Class BcBlobVerifier

extends Object
implements BlobVerifier
Class Inheritance
All Implemented Interfaces
org.bouncycastle.gpg.keybox.BlobVerifier
Imports
org.bouncycastle.crypto.digests.MD5Digest, .SHA1Digest, org.bouncycastle.gpg.keybox.BlobVerifier, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private final MD5Digest
private final SHA1Digest

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
isMatched(byte[]
bytes making up the blob.
blobData
,
byte[]
the expected digest.
blobDigest
)

Implements org.bouncycastle.gpg.keybox.BlobVerifier.isMatched.

Return true if the passed in blobData calculates to the expected digest.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

md5Digestback to summary
private final MD5Digest md5Digest
sha1Digestback to summary
private final SHA1Digest sha1Digest

Constructor Detail

BcBlobVerifierback to summary
public BcBlobVerifier()

Method Detail

isMatchedback to summary
public boolean isMatched(byte[] blobData, byte[] blobDigest)

Implements org.bouncycastle.gpg.keybox.BlobVerifier.isMatched.

Doc from org.bouncycastle.gpg.keybox.BlobVerifier.isMatched.

Return true if the passed in blobData calculates to the expected digest.

Parameters
blobData:byte[]

bytes making up the blob.

blobDigest:byte[]

the expected digest.

Returns:boolean

true on a match, false otherwise.