Added in API level 1
RSAPrivateKeySpec
public
class
RSAPrivateKeySpec
extends Object
implements
KeySpec
| java.lang.Object | |
| ↳ | java.security.spec.RSAPrivateKeySpec |
|
|
This class specifies an RSA private key.
Summary
Public constructors | |
|---|---|
RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Creates a new RSAPrivateKeySpec. |
|
Public methods | |
|---|---|
BigInteger
|
getModulus()
Returns the modulus. |
BigInteger
|
getPrivateExponent()
Returns the private exponent. |
Inherited methods | |
|---|---|
java.lang.Object
| |
Public constructors
RSAPrivateKeySpec
Added in API level 1
RSAPrivateKeySpec (BigInteger modulus, BigInteger privateExponent)
Creates a new RSAPrivateKeySpec.
| Parameters | |
|---|---|
modulus |
BigInteger:
the modulus |
privateExponent |
BigInteger:
the private exponent
|
Public methods
getModulus
Added in API level 1
BigInteger getModulus ()
Returns the modulus.
| Returns | |
|---|---|
BigInteger |
the modulus |
getPrivateExponent
Added in API level 1
BigInteger getPrivateExponent ()
Returns the private exponent.
| Returns | |
|---|---|
BigInteger |
the private exponent |
Interfaces
Classes
- DSAParameterSpec
- DSAPrivateKeySpec
- DSAPublicKeySpec
- ECFieldF2m
- ECFieldFp
- ECGenParameterSpec
- ECParameterSpec
- ECPoint
- ECPrivateKeySpec
- ECPublicKeySpec
- EllipticCurve
- EncodedKeySpec
- MGF1ParameterSpec
- PKCS8EncodedKeySpec
- PSSParameterSpec
- RSAKeyGenParameterSpec
- RSAMultiPrimePrivateCrtKeySpec
- RSAOtherPrimeInfo
- RSAPrivateCrtKeySpec
- RSAPrivateKeySpec
- RSAPublicKeySpec
- X509EncodedKeySpec
Exceptions