FileDocCategorySizeDatePackage
RSAPublicKeySpec.javaAPI DocAndroid 1.5 API2125Wed May 06 22:41:06 BST 2009java.security.spec

RSAPublicKeySpec

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

Defined in the PKCS #1 v2.1 standard.

since
Android 1.0

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

param
modulus the modulus {@code n}.
param
publicExponent the public exponent {@code d}.
since
Android 1.0

        this.modulus = modulus;
        this.publicExponent = publicExponent;
    
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.BigIntegergetPublicExponent()
Returns the public exponent {@code d}.

return
the public exponent {@code d}.
since
Android 1.0

        return publicExponent;