Welcome to mirror list, hosted at ThFree Co, Russian Federation.

BCPGKey.java « bcpg « spongycastle « org « java « main « src « pg - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7025bb3112fd85fdc8ec12106d9e05191fc42ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.spongycastle.bcpg;

/**
 * base interface for a PGP key
 */
public interface BCPGKey
{
    /**
     * 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 encoded in PGP format.
     * 
     * @return "RAW" or "PGP"
     */
    public String getFormat();
    
    /**
     * return a string of bytes giving the encoded format of the key, as described by it's format.
     * 
     * @return byte[]
     */
    public byte[] getEncoded();
    
}