Most visited

Recently visited

Added in API level 1

RSAPrivateKeySpec

public class RSAPrivateKeySpec
extends Object implements KeySpec

java.lang.Object
   ↳ java.security.spec.RSAPrivateKeySpec
Known Direct Subclasses


这个类指定一个RSA私钥。

也可以看看:

Summary

Public constructors

RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)

创建一个新的RSAPrivateKeySpec。

Public methods

BigInteger getModulus()

返回模量。

BigInteger getPrivateExponent()

返回私有指数。

Inherited methods

From class java.lang.Object

Public constructors

RSAPrivateKeySpec

Added in API level 1
RSAPrivateKeySpec (BigInteger modulus, 
                BigInteger privateExponent)

创建一个新的RSAPrivateKeySpec。

Parameters
modulus BigInteger: the modulus
privateExponent BigInteger: the private exponent

Public methods

getModulus

Added in API level 1
BigInteger getModulus ()

返回模量。

Returns
BigInteger the modulus

getPrivateExponent

Added in API level 1
BigInteger getPrivateExponent ()

返回私有指数。

Returns
BigInteger the private exponent

Hooray!