Constructor and Description |
---|
PGPSigner(InputStream keyring,
String keyId,
String passphrase,
int digest) |
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, int digest) throws IOException, org.bouncycastle.openpgp.PGPException
IOException
org.bouncycastle.openpgp.PGPException
public void clearSign(String input, OutputStream output) throws IOException, org.bouncycastle.openpgp.PGPException, GeneralSecurityException
input
- the content to be signedoutput
- the output destination of the signatureIOException
org.bouncycastle.openpgp.PGPException
GeneralSecurityException
public void clearSign(InputStream input, OutputStream output) throws IOException, org.bouncycastle.openpgp.PGPException, GeneralSecurityException
input
- the content to be signedoutput
- the output destination of the signatureIOException
org.bouncycastle.openpgp.PGPException
GeneralSecurityException
public org.bouncycastle.openpgp.PGPSecretKey getSecretKey()
public org.bouncycastle.openpgp.PGPPrivateKey getPrivateKey()
Copyright © 2018. All rights reserved.