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
  • Constructor Details

    • RSAParameters

      public RSAParameters​(RSAParameters.Keysize keysize)
      Creates a new RSAParameters object with the given keysize. 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

      public AlgorithmParameters.Type getType()
      Description copied from interface: AlgorithmParameters
      Return the type of the cryptographic scheme.
      Specified by:
      getType in interface AlgorithmParameters
      Returns:
      The type of the cryptographic scheme.
    • getKeysize

      public int getKeysize()
      Get the key size of the RSA key.
      Returns:
      The RSA key size.