public abstract class AbstractPGPEncryptor extends Object
构造器和说明 |
---|
AbstractPGPEncryptor() |
限定符和类型 | 方法和说明 |
---|---|
protected static byte[] |
getBytesFromFile(File file) |
protected static org.bouncycastle.openpgp.PGPPublicKey |
readPublicKey(InputStream in) |
protected static org.bouncycastle.openpgp.PGPPublicKey |
readPublicKey(String fileName) |
protected static org.bouncycastle.openpgp.PGPSecretKey |
readSecretKey(InputStream input)
A simple routine that opens a key ring file and loads the first available
key suitable for signature generation.
|
protected static org.bouncycastle.openpgp.PGPSecretKey |
readSecretKey(String fileName) |
protected static byte[] getBytesFromFile(File file) throws IOException
IOException
protected static org.bouncycastle.openpgp.PGPPublicKey readPublicKey(InputStream in) throws IOException, org.bouncycastle.openpgp.PGPException
IOException
org.bouncycastle.openpgp.PGPException
protected static org.bouncycastle.openpgp.PGPPublicKey readPublicKey(String fileName) throws IOException, org.bouncycastle.openpgp.PGPException
IOException
org.bouncycastle.openpgp.PGPException
protected static org.bouncycastle.openpgp.PGPSecretKey readSecretKey(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException
input
- stream to read the secret key ring collection from.IOException
- on a problem with using the input stream.org.bouncycastle.openpgp.PGPException
- if there is an issue parsing the input stream.protected static org.bouncycastle.openpgp.PGPSecretKey readSecretKey(String fileName) throws IOException, org.bouncycastle.openpgp.PGPException
IOException
org.bouncycastle.openpgp.PGPException
Copyright © 2015 jiucai.org. All rights reserved.