Package Summary  Overview Summary

class:RSAPublicKeySpec [NONE]

All Implemented Interfaces:
KeySpec

public class RSAPublicKeySpec
extends Object
implements KeySpec
This class specifies an RSA public key.
Since:
1.2
See Also:
Key, KeyFactory, KeySpec, X509EncodedKeySpec, RSAPrivateKeySpec, RSAPrivateCrtKeySpec

constructor:RSAPublicKeySpec(java.math.BigInteger,java.math.BigInteger) [NONE]

  • RSAPublicKeySpec

    public RSAPublicKeySpec?(BigInteger modulus, BigInteger publicExponent)
    Creates a new RSAPublicKeySpec.
    Parameters:
    modulus - the modulus
    publicExponent - the public exponent
  • constructor:RSAPublicKeySpec(java.math.BigInteger,java.math.BigInteger,java.security.spec.AlgorithmParameterSpec) [NONE]

    RSAPublicKeySpec

    public RSAPublicKeySpec?(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)
    Creates a new RSAPublicKeySpec with additional key parameters.
    Parameters:
    modulus - the modulus
    publicExponent - the public exponent
    params - the parameters associated with this key, may be null
    Since:
    11

    method:getModulus() [NONE]

  • getModulus

    public BigInteger getModulus()
    Returns the modulus.
    Returns:
    the modulus
  • method:getPublicExponent() [NONE]

    getPublicExponent

    public BigInteger getPublicExponent()
    Returns the public exponent.
    Returns:
    the public exponent

    method:getParams() [NONE]

    getParams

    public AlgorithmParameterSpec getParams()
    Returns the parameters associated with this key, may be null if not present.
    Returns:
    the parameters associated with this key
    Since:
    11

    © 2021 Oracle Corporation and/or its affiliates