Class ECPrivateKeySpec

java.lang.Object
java.security.spec.ECPrivateKeySpec
All Implemented Interfaces:
KeySpec

public class ECPrivateKeySpec
extends Object
implements KeySpec
The parameters specifying an Elliptic Curve (EC) private key.
  • Constructor Details

    • ECPrivateKeySpec

      public ECPrivateKeySpec​(BigInteger s, ECParameterSpec params)
      Creates a new ECPrivateKeySpec with the specified private value S and parameter specification.
      Parameters:
      s - the private value S.
      params - the domain parameter specification.
  • Method Details

    • getParams

      public ECParameterSpec getParams()
      Returns the domain parameter specification.
      Returns:
      the domain parameter specification.
    • getS

      public BigInteger getS()
      Returns the private value S.
      Returns:
      the private value S.