public abstract class OctetArrayBCPGKey extends BCPGObject implements BCPGKey
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
byte[] |
getEncoded()
return the standard PGP encoding of the key.
|
java.lang.String |
getFormat()
Return the base format for this key - in the case of the symmetric keys it will generally
be raw indicating that the key is just a straight byte representation, for an asymmetric
key the format will be PGP, indicating the key is a string of MPIs or octets
encoded in PGP format.
|
byte[] |
getKey() |
public byte[] getEncoded()
getEncoded
in interface BCPGKey
getEncoded
in interface org.bouncycastle.util.Encodable
getEncoded
in class BCPGObject
BCPGKey.getEncoded()
public java.lang.String getFormat()
BCPGKey
public void encode(BCPGOutputStream out) throws java.io.IOException
encode
in class BCPGObject
java.io.IOException
public byte[] getKey()