Package org.wildfly.security.key
Class RSAParameterSpec
- java.lang.Object
-
- org.wildfly.security.key.RSAParameterSpec
-
- All Implemented Interfaces:
AlgorithmParameterSpec
public final class RSAParameterSpec extends Object implements AlgorithmParameterSpec
Algorithm parameter specification for RSA keys. RSA keys do not support a parameter object, but it does in fact have a parameter: the modulus. The methods onKeyUtil
will therefore treat this class as the parameter type.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description RSAParameterSpec(BigInteger modulus)
Construct a new instance.RSAParameterSpec(RSAKey rsaKey)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
BigInteger
getModulus()
Get the modulus.int
hashCode()
-
-
-
Constructor Detail
-
RSAParameterSpec
public RSAParameterSpec(BigInteger modulus)
Construct a new instance.- Parameters:
modulus
- the modulus (must not benull
)
-
RSAParameterSpec
public RSAParameterSpec(RSAKey rsaKey)
Construct a new instance.- Parameters:
rsaKey
- the RSA key from which the modulus should be acquired (must not benull
)
-
-