org.bouncycastle.openpgp
public class PGPOnePassSignature extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
encode(java.io.OutputStream outStream) |
byte[] |
getEncoded() |
int |
getHashAlgorithm() |
int |
getKeyAlgorithm() |
long |
getKeyID() |
int |
getSignatureType() |
void |
initVerify(PGPPublicKey pubKey,
java.security.Provider provider)
Initialise the signature object for verification.
|
void |
initVerify(PGPPublicKey pubKey,
java.lang.String provider)
Initialise the signature object for verification.
|
void |
update(byte b) |
void |
update(byte[] bytes) |
void |
update(byte[] bytes,
int off,
int length) |
boolean |
verify(PGPSignature pgpSig)
Verify the calculated signature against the passed in PGPSignature.
|
public void initVerify(PGPPublicKey pubKey, java.lang.String provider) throws java.security.NoSuchProviderException, PGPException
pubKey - provider - java.security.NoSuchProviderExceptionPGPExceptionpublic void initVerify(PGPPublicKey pubKey, java.security.Provider provider) throws PGPException
pubKey - provider - PGPExceptionpublic void update(byte b)
throws java.security.SignatureException
java.security.SignatureExceptionpublic void update(byte[] bytes)
throws java.security.SignatureException
java.security.SignatureExceptionpublic void update(byte[] bytes,
int off,
int length)
throws java.security.SignatureException
java.security.SignatureExceptionpublic boolean verify(PGPSignature pgpSig) throws PGPException, java.security.SignatureException
pgpSig - PGPExceptionjava.security.SignatureExceptionpublic long getKeyID()
public int getSignatureType()
public int getHashAlgorithm()
public int getKeyAlgorithm()
public byte[] getEncoded()
throws java.io.IOException
java.io.IOExceptionpublic void encode(java.io.OutputStream outStream)
throws java.io.IOException
java.io.IOException