Class PgpHelper
java.lang.Object
org.eclipse.packager.security.pgp.PgpHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamfromString(String data) static Predicate<org.bouncycastle.openpgp.PGPSecretKey>keyShortId(String keyId) static org.bouncycastle.openpgp.PGPPrivateKeyloadPrivateKey(InputStream input, String keyId, char[] passPhrase) static org.bouncycastle.openpgp.PGPPrivateKeyloadPrivateKey(InputStream input, String keyId, String passPhrase) static org.bouncycastle.openpgp.PGPSecretKeyloadSecretKey(InputStream input, String keyId) static StringmakeShortKey(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)
-
Method Details
-
fromString
-
streamKeyring
public static Stream<org.bouncycastle.openpgp.PGPKeyRing> streamKeyring(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOExceptionorg.bouncycastle.openpgp.PGPException
-
streamSecretKeyring
public static Stream<org.bouncycastle.openpgp.PGPSecretKeyRing> streamSecretKeyring(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOExceptionorg.bouncycastle.openpgp.PGPException
-
streamSecretKeys
public static Stream<org.bouncycastle.openpgp.PGPSecretKey> streamSecretKeys(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOExceptionorg.bouncycastle.openpgp.PGPException
-
makeShortKey
-
keyShortId
-
loadPrivateKey
public static org.bouncycastle.openpgp.PGPPrivateKey loadPrivateKey(InputStream input, String keyId, String passPhrase) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOExceptionorg.bouncycastle.openpgp.PGPException
-
loadPrivateKey
public static org.bouncycastle.openpgp.PGPPrivateKey loadPrivateKey(InputStream input, String keyId, char[] passPhrase) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOExceptionorg.bouncycastle.openpgp.PGPException
-
loadSecretKey
public static org.bouncycastle.openpgp.PGPSecretKey loadSecretKey(InputStream input, String keyId) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOExceptionorg.bouncycastle.openpgp.PGPException
-