public class OpenPGPSignature
extends java.lang.Object
| Constructor and Description |
|---|
OpenPGPSignature(OpenPGPSecretKey key) |
| Modifier and Type | Method and Description |
|---|---|
static OpenPGPSignature |
createSignatureGenerator(java.lang.String keyId,
java.io.File secring,
char[] password) |
byte[] |
generate() |
void |
update(byte[] buffer,
int offset,
int length) |
public OpenPGPSignature(OpenPGPSecretKey key) throws org.bouncycastle.openpgp.PGPException
org.bouncycastle.openpgp.PGPExceptionpublic void update(byte[] buffer,
int offset,
int length)
throws java.security.SignatureException
java.security.SignatureExceptionpublic byte[] generate()
throws java.io.IOException,
java.security.SignatureException,
org.bouncycastle.openpgp.PGPException
java.io.IOExceptionjava.security.SignatureExceptionorg.bouncycastle.openpgp.PGPExceptionpublic static OpenPGPSignature createSignatureGenerator(java.lang.String keyId, java.io.File secring, char[] password) throws java.io.FileNotFoundException, java.io.IOException, org.bouncycastle.openpgp.PGPException
java.io.FileNotFoundExceptionjava.io.IOExceptionorg.bouncycastle.openpgp.PGPException