Class ElGamalPrivateKeySpec

  • All Implemented Interfaces:
    java.security.spec.KeySpec

    public class ElGamalPrivateKeySpec
    extends ElGamalKeySpec
    This class specifies an ElGamal private key with its associated parameters.
    See Also:
    ElGamalPublicKeySpec
    • Constructor Detail

      • ElGamalPrivateKeySpec

        public ElGamalPrivateKeySpec​(java.math.BigInteger x,
                                     ElGamalParameterSpec spec)
    • Method Detail

      • getX

        public java.math.BigInteger getX()
        Returns the private value x.
        Returns:
        the private value x