public abstract class ECPublicBCPGKey extends BCPGObject implements BCPGKey
Modifier | Constructor and Description |
---|---|
protected |
ECPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
org.bouncycastle.math.ec.ECPoint point) |
protected |
ECPublicBCPGKey(BCPGInputStream in) |
protected |
ECPublicBCPGKey(java.math.BigInteger encodedPoint,
org.bouncycastle.asn1.ASN1ObjectIdentifier oid) |
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getCurveOID() |
byte[] |
getEncoded()
return the standard PGP encoding of the key.
|
java.lang.String |
getFormat()
return "PGP"
|
org.bouncycastle.math.ec.ECPoint |
getPoint() |
protected static byte[] |
readBytesOfEncodedLength(BCPGInputStream in) |
protected ECPublicBCPGKey(BCPGInputStream in) throws java.io.IOException
in
- the stream to read the packet from.java.io.IOException
protected ECPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.math.ec.ECPoint point)
protected ECPublicBCPGKey(java.math.BigInteger encodedPoint, org.bouncycastle.asn1.ASN1ObjectIdentifier oid) throws java.io.IOException
java.io.IOException
public java.lang.String getFormat()
getFormat
in interface BCPGKey
BCPGKey.getFormat()
public byte[] getEncoded()
getEncoded
in interface BCPGKey
getEncoded
in class BCPGObject
BCPGKey.getEncoded()
public void encode(BCPGOutputStream out) throws java.io.IOException
encode
in class BCPGObject
java.io.IOException
public org.bouncycastle.math.ec.ECPoint getPoint()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getCurveOID()
protected static byte[] readBytesOfEncodedLength(BCPGInputStream in) throws java.io.IOException
java.io.IOException