Package org.bouncycastle.bcpg

## Class BCPGObject

- java.lang.Object
- - org.bouncycastle.bcpg.BCPGObject

- All Implemented Interfaces:
    `org.bouncycastle.util.Encodable`
  Direct Known Subclasses:
    `DSAPublicBCPGKey`, `DSASecretBCPGKey`, `ECPublicBCPGKey`, `ECSecretBCPGKey`, `EdSecretBCPGKey`, `ElGamalPublicBCPGKey`, `ElGamalSecretBCPGKey`, `MPInteger`, `RSAPublicBCPGKey`, `RSASecretBCPGKey`, `S2K`

      public abstract class BCPGObject
      extends java.lang.Object
      implements org.bouncycastle.util.Encodable

  Base class for a PGP object.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `BCPGObject()` |

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `encode​(BCPGOutputStream out)` |
    `byte[]` | `getEncoded()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BCPGObject

          public BCPGObject()

  - ### Method Detail

    - #### getEncoded

          public byte[] getEncoded()
                            throws java.io.IOException

      Specified by:
        `getEncoded` in interface `org.bouncycastle.util.Encodable`
      Throws:
        `java.io.IOException`

    - #### encode

          public abstract void encode​(BCPGOutputStream out)
                               throws java.io.IOException

      Throws:
        `java.io.IOException`