public class RSAPublicKeySpec extends Object implements KeySpec
Key
,
KeyFactory
,
KeySpec
,
X509EncodedKeySpec
,
RSAPrivateKeySpec
,
RSAPrivateCrtKeySpec
Constructor | Description |
---|---|
RSAPublicKeySpec (BigInteger modulus,
BigInteger publicExponent) |
Creates a new RSAPublicKeySpec.
|
RSAPublicKeySpec (BigInteger modulus,
BigInteger publicExponent,
AlgorithmParameterSpec params) |
Creates a new RSAPublicKeySpec with additional key parameters.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
modulus
- the moduluspublicExponent
- the public exponentpublic RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)
modulus
- the moduluspublicExponent
- the public exponentparams
- the parameters associated with this key, may be nullpublic BigInteger getModulus()
public BigInteger getPublicExponent()
public AlgorithmParameterSpec getParams()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.