Class KeyRingReader


  • public class KeyRingReader
    extends java.lang.Object
    • Field Detail

      • UTF8

        public static final java.nio.charset.Charset UTF8
    • Constructor Detail

      • KeyRingReader

        public KeyRingReader()
    • Method Detail

      • publicKeyRing

        public org.bouncycastle.openpgp.PGPPublicKeyRing publicKeyRing​(@Nonnull
                                                                       java.io.InputStream inputStream)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • publicKeyRing

        public org.bouncycastle.openpgp.PGPPublicKeyRing publicKeyRing​(@Nonnull
                                                                       byte[] bytes)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • publicKeyRing

        public org.bouncycastle.openpgp.PGPPublicKeyRing publicKeyRing​(@Nonnull
                                                                       java.lang.String asciiArmored)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • publicKeyRingCollection

        public org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRingCollection​(@Nonnull
                                                                                           java.io.InputStream inputStream)
                                                                                    throws java.io.IOException,
                                                                                           org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • publicKeyRingCollection

        public org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRingCollection​(@Nonnull
                                                                                           byte[] bytes)
                                                                                    throws java.io.IOException,
                                                                                           org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • publicKeyRingCollection

        public org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRingCollection​(@Nonnull
                                                                                           java.lang.String asciiArmored)
                                                                                    throws java.io.IOException,
                                                                                           org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • secretKeyRing

        public org.bouncycastle.openpgp.PGPSecretKeyRing secretKeyRing​(@Nonnull
                                                                       java.io.InputStream inputStream)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • secretKeyRing

        public org.bouncycastle.openpgp.PGPSecretKeyRing secretKeyRing​(@Nonnull
                                                                       byte[] bytes)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • secretKeyRing

        public org.bouncycastle.openpgp.PGPSecretKeyRing secretKeyRing​(@Nonnull
                                                                       java.lang.String asciiArmored)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • secretKeyRingCollection

        public org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRingCollection​(@Nonnull
                                                                                           java.io.InputStream inputStream)
                                                                                    throws java.io.IOException,
                                                                                           org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • secretKeyRingCollection

        public org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRingCollection​(@Nonnull
                                                                                           byte[] bytes)
                                                                                    throws java.io.IOException,
                                                                                           org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • secretKeyRingCollection

        public org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRingCollection​(@Nonnull
                                                                                           java.lang.String asciiArmored)
                                                                                    throws java.io.IOException,
                                                                                           org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • keyRingCollection

        public PGPKeyRingCollection keyRingCollection​(@Nonnull
                                                      java.io.InputStream inputStream,
                                                      boolean isSilent)
                                               throws java.io.IOException,
                                                      org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • keyRingCollection

        public PGPKeyRingCollection keyRingCollection​(@Nonnull
                                                      byte[] bytes,
                                                      boolean isSilent)
                                               throws java.io.IOException,
                                                      org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • keyRingCollection

        public PGPKeyRingCollection keyRingCollection​(@Nonnull
                                                      java.lang.String asciiArmored,
                                                      boolean isSilent)
                                               throws java.io.IOException,
                                                      org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • readPublicKeyRing

        public static org.bouncycastle.openpgp.PGPPublicKeyRing readPublicKeyRing​(@Nonnull
                                                                                  java.io.InputStream inputStream)
                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readPublicKeyRingCollection

        public static org.bouncycastle.openpgp.PGPPublicKeyRingCollection readPublicKeyRingCollection​(@Nonnull
                                                                                                      java.io.InputStream inputStream)
                                                                                               throws java.io.IOException,
                                                                                                      org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • readSecretKeyRing

        public static org.bouncycastle.openpgp.PGPSecretKeyRing readSecretKeyRing​(@Nonnull
                                                                                  java.io.InputStream inputStream)
                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readSecretKeyRingCollection

        public static org.bouncycastle.openpgp.PGPSecretKeyRingCollection readSecretKeyRingCollection​(@Nonnull
                                                                                                      java.io.InputStream inputStream)
                                                                                               throws java.io.IOException,
                                                                                                      org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException
      • readKeyRingCollection

        public static PGPKeyRingCollection readKeyRingCollection​(@Nonnull
                                                                 java.io.InputStream inputStream,
                                                                 boolean isSilent)
                                                          throws java.io.IOException,
                                                                 org.bouncycastle.openpgp.PGPException
        Throws:
        java.io.IOException
        org.bouncycastle.openpgp.PGPException