模块 java.base

类 RSAPublicKeySpec

java.lang.Object
java.security.spec.RSAPublicKeySpec
所有已实现的接口:
KeySpec

public class RSAPublicKeySpec extends Object implements KeySpec
此类指定 RSA 公钥。
自从:
1.2
参见:
  • 构造方法详细信息

    • RSAPublicKeySpec

      public RSAPublicKeySpec(BigInteger  modulus, BigInteger  publicExponent)
      创建一个新的 RSAPublicKeySpec。
      参数:
      modulus - 模数
      publicExponent - 公共指数
    • RSAPublicKeySpec

      public RSAPublicKeySpec(BigInteger  modulus, BigInteger  publicExponent, AlgorithmParameterSpec  params)
      使用附加密钥参数创建新的 RSAPublicKeySpec。
      参数:
      modulus - 模数
      publicExponent - 公共指数
      params - 与此键关联的参数,可能为空
      自从:
      11
  • 方法详情

    • getModulus

      public BigInteger  getModulus()
      返回模数。
      返回:
      模数
    • getPublicExponent

      public BigInteger  getPublicExponent()
      返回公共指数。
      返回:
      公共指数
    • getParams

      public AlgorithmParameterSpec  getParams()
      返回与此键关联的参数,如果不存在则可能为 null。
      返回:
      与此键关联的参数
      自从:
      11