Class KeyPairGenerationSpecFactory

java.lang.Object
de.xima.fc.certificate.mgmt.key.generation.KeyPairGenerationSpecFactory

public final class KeyPairGenerationSpecFactory extends Object
Factory class for creating key pair generation specifications. This class provides static methods to create specifications for RSA, DSA, and EC key pair generation.
Since:
8.5.0
Author:
XIMA MEDIA GmbH
  • Method Details

    • dsaSpec

      public static IDsaKeyPairGenerationSpec dsaSpec(int keySize, ESignatureType signatureType)
      Creates a specification for DSA key pair generation.
      Parameters:
      keySize - The key size for the DSA key pair generation.
      signatureType - The signature type for the DSA key pair generation.
      Returns:
      A specification for DSA key pair generation.
    • ecSpec

      public static IKeyPairGenerationSpec ecSpec(String curveName, ESignatureType signatureType)
      Creates a specification for EC key pair generation using a named curve.
      Parameters:
      curveName - The curve name for the EC key pair generation.
      signatureType - The signature type for the EC key pair generation.
      Returns:
      A specification for EC key pair generation.
    • ecSpec

      public static IKeyPairGenerationSpec ecSpec(int keySize, ESignatureType signatureType)
      Creates a specification for EC key pair generation using a key size.
      Parameters:
      keySize - The key size for the EC key pair generation.
      signatureType - The signature type for the EC key pair generation.
      Returns:
      A specification for EC key pair generation.
    • rsaSpec

      public static IRsaKeyPairGenerationSpec rsaSpec(int keySize, ESignatureType signatureType)
      Creates a specification for RSA key pair generation.
      Parameters:
      keySize - The key size for the RSA key pair generation.
      signatureType - The signature type for the RSA key pair generation.
      Returns:
      A specification for RSA key pair generation.