Class ECPublicBCPGKey

    • Constructor Detail

      • ECPublicBCPGKey

        protected ECPublicBCPGKey​(BCPGInputStream in)
                           throws java.io.IOException
        Parameters:
        in - the stream to read the packet from.
        Throws:
        java.io.IOException
      • ECPublicBCPGKey

        protected ECPublicBCPGKey​(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
                                  org.bouncycastle.math.ec.ECPoint point)
      • ECPublicBCPGKey

        protected ECPublicBCPGKey​(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
                                  java.math.BigInteger encodedPoint)
    • 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()
      • getEncodedPoint

        public java.math.BigInteger getEncodedPoint()
        Returns:
        point
      • getCurveOID

        public org.bouncycastle.asn1.ASN1ObjectIdentifier getCurveOID()
        Returns:
        oid
      • readBytesOfEncodedLength

        protected static byte[] readBytesOfEncodedLength​(BCPGInputStream in)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException