public class RSAPublicKeySpec extends Object implements KeySpec
Key
,
KeyFactory
,
KeySpec
,
X509EncodedKeySpec
,
RSAPrivateKeySpec
,
RSAPrivateCrtKeySpec
Constructor and 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 and 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()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2022 aicas GmbH. All Rights Reserved.