Class RSAParameters
java.lang.Object
de.hda.fbi.ucs.eucrite.parameters.RSAParameters
- All Implemented Interfaces:
AlgorithmParameters
public class RSAParameters extends Object implements AlgorithmParameters
The parameters required for the RSA signature scheme. To use RSA for asymmetric encryption, see
RSA_KEMParameters
.- Author:
- Alexander Zeier
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RSAParameters.Keysize
The keysize determines the security of the RSA encryption, but also the performance.Nested classes/interfaces inherited from interface de.hda.fbi.ucs.eucrite.parameters.AlgorithmParameters
AlgorithmParameters.Algorithm, AlgorithmParameters.Template, AlgorithmParameters.Type
-
Constructor Summary
Constructors Constructor Description RSAParameters(RSAParameters.Keysize keysize)
Creates a newRSAParameters
object with the givenkeysize
. -
Method Summary
Modifier and Type Method Description int
getKeysize()
Get the key size of the RSA key.AlgorithmParameters.Type
getType()
Return the type of the cryptographic scheme.
-
Constructor Details
-
RSAParameters
Creates a newRSAParameters
object with the givenkeysize
. RSA is an asymmetrical encryption scheme.- Parameters:
keysize
- The size of the RSA key. It can be 2048, 3072 or 4096 bit.
-
-
Method Details
-
getType
Description copied from interface:AlgorithmParameters
Return the type of the cryptographic scheme.- Specified by:
getType
in interfaceAlgorithmParameters
- Returns:
- The type of the cryptographic scheme.
-
getKeysize
public int getKeysize()Get the key size of the RSA key.- Returns:
- The RSA key size.
-