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