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

public Class JcaBlobVerifier

extends Object
implements BlobVerifier
Class Inheritance
All Implemented Interfaces
org.bouncycastle.gpg.keybox.BlobVerifier
Imports
java.security.DigestException, .MessageDigest, .NoSuchAlgorithmException, .NoSuchProviderException, org.bouncycastle.gpg.keybox.BlobVerifier, org.bouncycastle.jcajce.util.JcaJceHelper, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private final MessageDigest
private final MessageDigest

Constructor Summary

AccessConstructor and Description
pack-priv

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 MessageDigest md5Digest
sha1Digestback to summary
private final MessageDigest sha1Digest

Constructor Detail

JcaBlobVerifierback to summary
pack-priv JcaBlobVerifier(JcaJceHelper helper) throws NoSuchProviderException, NoSuchAlgorithmException

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.