Top Description Fields Constructors Methods
java.security.spec

public Class ECPrivateKeySpec

extends Object
implements KeySpec
Class Inheritance
All Implemented Interfaces
java.security.spec.KeySpec
Imports
java.math.BigInteger

This immutable class specifies an elliptic curve private key with its associated parameters.
Author
Valerie Peng
Since
1.5
See Also
KeySpec, ECParameterSpec

Field Summary

Modifier and TypeField and Description
private final ECParameterSpec
private final BigInteger
s

Constructor Summary

AccessConstructor and Description
public
ECPrivateKeySpec(BigInteger
the private value.
s
,
ECParameterSpec
the associated elliptic curve domain parameters.
params
)

Creates a new ECPrivateKeySpec with the specified parameter values.

Method Summary

Modifier and TypeMethod and Description
public ECParameterSpec

Returns:

the EC domain parameters.
getParams
()

Returns the associated elliptic curve domain parameters.

public BigInteger

Returns:

the private value S.
getS
()

Returns the private value S.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

paramsback to summary
private final ECParameterSpec params
sback to summary
private final BigInteger s

Constructor Detail

ECPrivateKeySpecback to summary
public ECPrivateKeySpec(BigInteger s, ECParameterSpec params)

Creates a new ECPrivateKeySpec with the specified parameter values.

Parameters
s:BigInteger

the private value.

params:ECParameterSpec

the associated elliptic curve domain parameters.

Exceptions
NullPointerException:
if s or params is null.

Method Detail

getParamsback to summary
public ECParameterSpec getParams()

Returns the associated elliptic curve domain parameters.

Returns:ECParameterSpec

the EC domain parameters.

getSback to summary
public BigInteger getS()

Returns the private value S.

Returns:BigInteger

the private value S.