Package java.security.spec
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 Summary
Constructors Constructor Description ECPrivateKeySpec(BigInteger s, ECParameterSpec params)Creates a newECPrivateKeySpecwith the specified private valueSand parameter specification. -
Method Summary
Modifier and Type Method Description ECParameterSpecgetParams()Returns the domain parameter specification.BigIntegergetS()Returns the private valueS.
-
Constructor Details
-
ECPrivateKeySpec
Creates a newECPrivateKeySpecwith the specified private valueSand parameter specification.- Parameters:
s- the private valueS.params- the domain parameter specification.
-
-
Method Details
-
getParams
Returns the domain parameter specification.- Returns:
- the domain parameter specification.
-
getS
Returns the private valueS.- Returns:
- the private value
S.
-