Class PgpHelper

java.lang.Object
org.eclipse.packager.security.pgp.PgpHelper

public final class PgpHelper extends Object
  • Method Details

    • fromString

      public static InputStream fromString(String data)
    • streamKeyring

      public static Stream<org.bouncycastle.openpgp.PGPKeyRing> streamKeyring(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException
    • streamSecretKeyring

      public static Stream<org.bouncycastle.openpgp.PGPSecretKeyRing> streamSecretKeyring(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException
    • streamSecretKeys

      public static Stream<org.bouncycastle.openpgp.PGPSecretKey> streamSecretKeys(InputStream input) throws IOException, org.bouncycastle.openpgp.PGPException
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException
    • makeShortKey

      public static String makeShortKey(org.bouncycastle.openpgp.PGPSecretKey key)
    • keyShortId

      public static Predicate<org.bouncycastle.openpgp.PGPSecretKey> keyShortId(String keyId)
    • loadPrivateKey

      public static org.bouncycastle.openpgp.PGPPrivateKey loadPrivateKey(InputStream input, String keyId, String passPhrase) throws IOException, org.bouncycastle.openpgp.PGPException
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException
    • loadPrivateKey

      public static org.bouncycastle.openpgp.PGPPrivateKey loadPrivateKey(InputStream input, String keyId, char[] passPhrase) throws IOException, org.bouncycastle.openpgp.PGPException
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException
    • loadSecretKey

      public static org.bouncycastle.openpgp.PGPSecretKey loadSecretKey(InputStream input, String keyId) throws IOException, org.bouncycastle.openpgp.PGPException
      Throws:
      IOException
      org.bouncycastle.openpgp.PGPException