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 BCPGKeygetEncoded in interface org.bouncycastle.util.EncodablegetEncoded in class BCPGObjectBCPGKey.getEncoded()public java.lang.String getFormat()
BCPGKeypublic void encode(BCPGOutputStream out) throws java.io.IOException
encode in class BCPGObjectjava.io.IOExceptionpublic byte[] getKey()