public class RSAPublicBCPGKey extends BCPGObject implements BCPGKey
Constructor and Description |
---|
RSAPublicBCPGKey(BCPGInputStream in)
Construct an RSA public key from the passed in stream.
|
RSAPublicBCPGKey(BigInteger n,
BigInteger e) |
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
byte[] |
getEncoded()
return the standard PGP encoding of the key.
|
String |
getFormat()
return "PGP"
|
BigInteger |
getModulus() |
BigInteger |
getPublicExponent() |
public RSAPublicBCPGKey(BCPGInputStream in) throws IOException
in
- IOException
public RSAPublicBCPGKey(BigInteger n, BigInteger e)
n
- the moduluse
- the public exponentpublic BigInteger getPublicExponent()
public BigInteger getModulus()
public String getFormat()
getFormat
in interface BCPGKey
BCPGKey.getFormat()
public byte[] getEncoded()
getEncoded
in interface BCPGKey
getEncoded
in class BCPGObject
BCPGKey.getEncoded()
public void encode(BCPGOutputStream out) throws IOException
encode
in class BCPGObject
IOException