01: package org.bouncycastle.bcpg;
02:
03: /**
04: * base interface for a PGP key
05: */
06: public interface BCPGKey {
07: /**
08: * Return the base format for this key - in the case of the symmetric keys it will generally
09: * be raw indicating that the key is just a straight byte representation, for an asymmetric
10: * key the format will be PGP, indicating the key is a string of MPIs encoded in PGP format.
11: *
12: * @return "RAW" or "PGP"
13: */
14: public String getFormat();
15:
16: /**
17: * return a string of bytes giving the encoded format of the key, as described by it's format.
18: *
19: * @return byte[]
20: */
21: public byte[] getEncoded();
22:
23: }
|