public abstract class ECPublicBCPGKey extends BCPGObject implements BCPGKey
Modifier | Constructor and Description |
---|---|
protected |
ECPublicBCPGKey(ASN1ObjectIdentifier oid,
BigInteger encodedPoint) |
protected |
ECPublicBCPGKey(ASN1ObjectIdentifier oid,
ECPoint point) |
protected |
ECPublicBCPGKey(BCPGInputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
ASN1ObjectIdentifier |
getCurveOID() |
byte[] |
getEncoded()
return the standard PGP encoding of the key.
|
BigInteger |
getEncodedPoint() |
String |
getFormat()
return "PGP"
|
protected static byte[] |
readBytesOfEncodedLength(BCPGInputStream in) |
protected ECPublicBCPGKey(BCPGInputStream in) throws IOException
in
- the stream to read the packet from.IOException
protected ECPublicBCPGKey(ASN1ObjectIdentifier oid, ECPoint point)
protected ECPublicBCPGKey(ASN1ObjectIdentifier oid, BigInteger encodedPoint) throws IOException
IOException
public String getFormat()
getFormat
in interface BCPGKey
BCPGKey.getFormat()
public byte[] getEncoded()
getEncoded
in interface BCPGKey
getEncoded
in interface Encodable
getEncoded
in class BCPGObject
BCPGKey.getEncoded()
public void encode(BCPGOutputStream out) throws IOException
encode
in class BCPGObject
IOException
public BigInteger getEncodedPoint()
public ASN1ObjectIdentifier getCurveOID()
protected static byte[] readBytesOfEncodedLength(BCPGInputStream in) throws IOException
IOException
Copyright © 2018 BouncyCastle.org. All rights reserved.