Interface PrimalityTestParamSpec

All Superinterfaces:
AlgorithmParameterSpec

public interface PrimalityTestParamSpec extends AlgorithmParameterSpec
The PrimalityTestParamSpec interface can be used for key pair generation (e.g RSA) for configuring the primality test algorithm.
Since:
3.1
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final short
    Defines the Fermat probabilistic primality test
    static final short
    Defines the Miller Rabin probabilistic primality test
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    Gets the number of rounds to perform primality test.
    short
    Returns the constant defining the primality test to use
  • Field Details

    • MILLER_RABIN_TEST

      static final short MILLER_RABIN_TEST
      Defines the Miller Rabin probabilistic primality test
      See Also:
    • FERMAT_TEST

      static final short FERMAT_TEST
      Defines the Fermat probabilistic primality test
      See Also:
  • Method Details

    • getType

      short getType()
      Returns the constant defining the primality test to use
      Returns:
      the primality test type
    • getRounds

      short getRounds()
      Gets the number of rounds to perform primality test.
      Returns:
      number of testing rounds