Top Description Fields Constructors Methods
org.bouncycastle.bcpg

public abstract Class ECPublicBCPGKey

extends BCPGObject
implements BCPGKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.bcpg.BCPGKey, org.bouncycastle.util.Encodable
Known Direct Subclasses
org.bouncycastle.bcpg.EdDSAPublicBCPGKey, org.bouncycastle.bcpg.ECDHPublicBCPGKey, org.bouncycastle.bcpg.ECDSAPublicBCPGKey
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1ObjectIdentifier, .ASN1Primitive, org.bouncycastle.math.ec.ECPoint

base class for an EC Public Key.

Field Summary

Modifier and TypeField and Description
pack-priv ASN1ObjectIdentifier
pack-priv BigInteger

Constructor Summary

AccessConstructor and Description
protected
ECPublicBCPGKey(BCPGInputStream
the stream to read the packet from.
in
)

protected
protected

Method Summary

Modifier and TypeMethod and Description
public void
public ASN1ObjectIdentifier

Returns:

oid
getCurveOID
()

public byte[]
public BigInteger

Returns:

point
getEncodedPoint
()

public String
protected static byte[]

Field Detail

oidback to summary
pack-priv ASN1ObjectIdentifier oid
pointback to summary
pack-priv BigInteger point

Constructor Detail

ECPublicBCPGKeyback to summary
protected ECPublicBCPGKey(BCPGInputStream in) throws IOException
Parameters
in:BCPGInputStream

the stream to read the packet from.

ECPublicBCPGKeyback to summary
protected ECPublicBCPGKey(ASN1ObjectIdentifier oid, ECPoint point)
ECPublicBCPGKeyback to summary
protected ECPublicBCPGKey(ASN1ObjectIdentifier oid, BigInteger encodedPoint)

Method Detail

encodeback to summary
public void encode(BCPGOutputStream out) throws IOException

Implements abstract org.bouncycastle.bcpg.BCPGObject.encode.

getCurveOIDback to summary
public ASN1ObjectIdentifier getCurveOID()
Returns:ASN1ObjectIdentifier

oid

getEncodedback to summary
public byte[] getEncoded()

Overrides org.bouncycastle.bcpg.BCPGObject.getEncoded.

Implements org.bouncycastle.bcpg.BCPGKey.getEncoded, org.bouncycastle.util.Encodable.getEncoded.

return the standard PGP encoding of the key.

Returns:byte[]

Doc from org.bouncycastle.bcpg.BCPGKey.getEncoded.

byte[]

See Also
org.bouncycastle.bcpg.BCPGKey#getEncoded()
getEncodedPointback to summary
public BigInteger getEncodedPoint()
Returns:BigInteger

point

getFormatback to summary
public String getFormat()

Implements org.bouncycastle.bcpg.BCPGKey.getFormat.

return "PGP"

Returns:String

Doc from org.bouncycastle.bcpg.BCPGKey.getFormat.

"RAW" or "PGP"

See Also
org.bouncycastle.bcpg.BCPGKey#getFormat()
readBytesOfEncodedLengthback to summary
protected static byte[] readBytesOfEncodedLength(BCPGInputStream in) throws IOException