public class PGPSigner extends Object
| Constructor and Description |
|---|
PGPSigner(InputStream keyring,
String keyId,
String passphrase) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSign(InputStream input,
OutputStream output)
Creates a clear sign signature over the input data.
|
void |
clearSign(String input,
OutputStream output)
Creates a clear sign signature over the input data.
|
org.bouncycastle.openpgp.PGPPrivateKey |
getPrivateKey()
Returns the private key.
|
org.bouncycastle.openpgp.PGPSecretKey |
getSecretKey()
Returns the secret key.
|
public PGPSigner(InputStream keyring, String keyId, String passphrase) throws IOException, org.bouncycastle.openpgp.PGPException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic void clearSign(String input, OutputStream output) throws IOException, org.bouncycastle.openpgp.PGPException, GeneralSecurityException
input - the content to be signedoutput - the output destination of the signatureIOExceptionorg.bouncycastle.openpgp.PGPExceptionGeneralSecurityExceptionpublic void clearSign(InputStream input, OutputStream output) throws IOException, org.bouncycastle.openpgp.PGPException, GeneralSecurityException
input - the content to be signedoutput - the output destination of the signatureIOExceptionorg.bouncycastle.openpgp.PGPExceptionGeneralSecurityExceptionpublic org.bouncycastle.openpgp.PGPSecretKey getSecretKey()
public org.bouncycastle.openpgp.PGPPrivateKey getPrivateKey()
Copyright © 2014. All rights reserved.