FileDocCategorySizeDatePackage
RSAPrivateKeySpec.javaAPI DocAndroid 1.5 API2147Wed May 06 22:41:06 BST 2009java.security.spec

RSAPrivateKeySpec

public class RSAPrivateKeySpec extends Object implements KeySpec
The key specification of a RSA private key.

Defined in the PKCS #1 v2.1 standard

since
Android 1.0

Fields Summary
private final BigInteger
modulus
private final BigInteger
privateExponent
Constructors Summary
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Creates a new {@code RSAPrivateKeySpec} with the specified modulus and private exponent.

param
modulus the modulus {@code n}.
param
privateExponent the private exponent {@code e}
since
Android 1.0

        this.modulus = modulus;
        this.privateExponent = privateExponent;
    
Methods Summary
public java.math.BigIntegergetModulus()
Returns the modulus {@code n}.

return
the modulus {@code n}.
since
Android 1.0

        return modulus;
    
public java.math.BigIntegergetPrivateExponent()
Returns the private exponent {@code e}.

return
the private exponent {@code e}.
since
Android 1.0

        return privateExponent;