FileDocCategorySizeDatePackage
ECPrivateKeySpec.javaAPI DocJava SE 5 API1524Fri Aug 26 14:57:18 BST 2005java.security.spec

ECPrivateKeySpec

public class ECPrivateKeySpec extends Object implements KeySpec
This immutable class specifies an elliptic curve private key with its associated parameters.
see
KeySpec
see
ECParameterSpec
author
Valerie Peng
version
1.3, 12/19/03
since
1.5

Fields Summary
private BigInteger
s
private ECParameterSpec
params
Constructors Summary
public ECPrivateKeySpec(BigInteger s, ECParameterSpec params)
Creates a new ECPrivateKeySpec with the specified parameter values.

param
s the private value.
param
params the associated elliptic curve domain parameters.
exception
NullPointerException if s or params is null.

        if (s == null) {
            throw new NullPointerException("s is null");
        }
        if (params == null) {
            throw new NullPointerException("params is null");
        }
	this.s = s;
	this.params = params;
    
Methods Summary
public java.security.spec.ECParameterSpecgetParams()
Returns the associated elliptic curve domain parameters.

return
the EC domain parameters.

	return params;
    
public java.math.BigIntegergetS()
Returns the private value S.

return
the private value S.

	return s;