public final class PgpHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
fromString(String data) |
static Predicate<org.bouncycastle.openpgp.PGPSecretKey> |
keyShortId(String keyId) |
static org.bouncycastle.openpgp.PGPPrivateKey |
loadPrivateKey(InputStream input,
String keyId,
char[] passPhrase) |
static org.bouncycastle.openpgp.PGPPrivateKey |
loadPrivateKey(InputStream input,
String keyId,
String passPhrase) |
static org.bouncycastle.openpgp.PGPSecretKey |
loadSecretKey(InputStream input,
String keyId) |
static String |
makeShortKey(org.bouncycastle.openpgp.PGPSecretKey key) |
static Stream<org.bouncycastle.openpgp.PGPKeyRing> |
streamKeyring(InputStream input) |
static Stream<org.bouncycastle.openpgp.PGPSecretKeyRing> |
streamSecretKeyring(InputStream input) |
static Stream<org.bouncycastle.openpgp.PGPSecretKey> |
streamSecretKeys(InputStream input) |
public static InputStream fromString(String data)
public static Stream<org.bouncycastle.openpgp.PGPKeyRing> streamKeyring(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic static Stream<org.bouncycastle.openpgp.PGPSecretKeyRing> streamSecretKeyring(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic static Stream<org.bouncycastle.openpgp.PGPSecretKey> streamSecretKeys(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic static String makeShortKey(org.bouncycastle.openpgp.PGPSecretKey key)
public static org.bouncycastle.openpgp.PGPPrivateKey loadPrivateKey(InputStream input, String keyId, String passPhrase) throws IOException, org.bouncycastle.openpgp.PGPException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic static org.bouncycastle.openpgp.PGPPrivateKey loadPrivateKey(InputStream input, String keyId, char[] passPhrase) throws IOException, org.bouncycastle.openpgp.PGPException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic static org.bouncycastle.openpgp.PGPSecretKey loadSecretKey(InputStream input, String keyId) throws IOException, org.bouncycastle.openpgp.PGPException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionCopyright © 2016. All rights reserved.