RSAPublicKeySpec
  public
  
  
  
  class
  RSAPublicKeySpec
  
    extends Object
  
  
  
  
  
      implements
      
        KeySpec
      
  
  
| java.lang.Object | |
| ↳ | java.security.spec.RSAPublicKeySpec | 
This class specifies an RSA public key.
Summary
| Public constructors | |
|---|---|
| 
      RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
      Creates a new RSAPublicKeySpec. | |
| 
      RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)
      Creates a new RSAPublicKeySpec with additional key parameters. | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        BigInteger | 
      getModulus()
      Returns the modulus. | 
| 
        
        
        
        
        
        AlgorithmParameterSpec | 
      getParams()
      Returns the parameters associated with this key, may be null if not present. | 
| 
        
        
        
        
        
        BigInteger | 
      getPublicExponent()
      Returns the public exponent. | 
| Inherited methods | |
|---|---|
Public constructors
RSAPublicKeySpec
public RSAPublicKeySpec (BigInteger modulus, BigInteger publicExponent)
Creates a new RSAPublicKeySpec.
| Parameters | |
|---|---|
| modulus | BigInteger: the modulus | 
| publicExponent | BigInteger: the public exponent | 
RSAPublicKeySpec
public RSAPublicKeySpec (BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)
Creates a new RSAPublicKeySpec with additional key parameters.
| Parameters | |
|---|---|
| modulus | BigInteger: the modulus | 
| publicExponent | BigInteger: the public exponent | 
| params | AlgorithmParameterSpec: the parameters associated with this key, may be null | 
Public methods
getModulus
public BigInteger getModulus ()
Returns the modulus.
| Returns | |
|---|---|
| BigInteger | the modulus | 
getParams
public AlgorithmParameterSpec getParams ()
Returns the parameters associated with this key, may be null if not present.
| Returns | |
|---|---|
| AlgorithmParameterSpec | the parameters associated with this key | 
getPublicExponent
public BigInteger getPublicExponent ()
Returns the public exponent.
| Returns | |
|---|---|
| BigInteger | the public exponent | 
