Class DSASecretBCPGKey

  • All Implemented Interfaces:
    BCPGKey, org.bouncycastle.util.Encodable

    public class DSASecretBCPGKey
    extends BCPGObject
    implements BCPGKey
    base class for a DSA Secret Key.
    • Constructor Detail

      • DSASecretBCPGKey

        public DSASecretBCPGKey​(BCPGInputStream in)
                         throws java.io.IOException
        Parameters:
        in -
        Throws:
        java.io.IOException
      • DSASecretBCPGKey

        public DSASecretBCPGKey​(java.math.BigInteger x)
        Parameters:
        x -
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
        return the standard PGP encoding of the key.
        Specified by:
        getEncoded in interface BCPGKey
        Specified by:
        getEncoded in interface org.bouncycastle.util.Encodable
        Overrides:
        getEncoded in class BCPGObject
        Returns:
        byte[]
        See Also:
        BCPGKey.getEncoded()
      • getX

        public java.math.BigInteger getX()
        Returns:
        x