de.flexiprovider.ec.keys
Class ECPrivateKeySpec

java.lang.Object
  |
  +--de.flexiprovider.ec.keys.ECPrivateKeySpec
All Implemented Interfaces:
KeySpec, java.security.spec.KeySpec

public final class ECPrivateKeySpec
extends java.lang.Object
implements KeySpec

This class specifies an EC private key with its associated parameters.

Author:
Birgit Henhapl, Michele Boivin
See Also:
Key, KeySpec, ECPublicKeySpec, Point, CurveParams

Constructor Summary
ECPrivateKeySpec(FlexiBigInt s, CurveParams params)
          Constructs a new private key specification.
 
Method Summary
 CurveParams getParams()
          Returns the ECDomain Parameters params.
 FlexiBigInt getS()
          Returns the private key s.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECPrivateKeySpec

public ECPrivateKeySpec(FlexiBigInt s,
                        CurveParams params)
Constructs a new private key specification. The parameters are the private key s and an ecdomain parameters specification params (see ECParameterSpec).
Parameters:
s - private key represented by a FlexiBigInt
params - an ecdomain parameters specification
Method Detail

getS

public FlexiBigInt getS()
Returns the private key s. 1 < s < r, r is the order of point G, member of the ECDomain Parameters.
Returns:
the private key s

getParams

public CurveParams getParams()
Returns the ECDomain Parameters params.
Returns:
the parameters params