FileDocCategorySizeDatePackage
ECPrivateKeySpec.javaAPI DocAndroid 1.5 API2500Wed May 06 22:41:06 BST 2009java.security.spec

ECPrivateKeySpec

public class ECPrivateKeySpec extends Object implements KeySpec
The parameters specifying an Elliptic Curve (EC) private key.
since
Android 1.0

Fields Summary
private final BigInteger
s
private final ECParameterSpec
params
Constructors Summary
public ECPrivateKeySpec(BigInteger s, ECParameterSpec params)
Creates a new {@code ECPrivateKeySpec} with the specified private value {@code S} and parameter specification.

param
s the private value {@code S}.
param
params the domain parameter specification.
since
Android 1.0

        this.s = s;
        this.params = params;
        // throw NullPointerException if s or params is null
        if (this.s == null) {
            throw new NullPointerException(Messages.getString("security.83", "s")); //$NON-NLS-1$ //$NON-NLS-2$
        }
        if (this.params == null) {
            throw new NullPointerException(Messages.getString("security.83", "params")); //$NON-NLS-1$ //$NON-NLS-2$
        }
    
Methods Summary
public java.security.spec.ECParameterSpecgetParams()
Returns the domain parameter specification.

return
the domain parameter specification.
since
Android 1.0

        return params;
    
public java.math.BigIntegergetS()
Returns the private value {@code S}.

return
the private value {@code S}.
since
Android 1.0

        return s;