Added in API level 1

ECPrivateKeySpec

open class ECPrivateKeySpec : KeySpec
kotlin.Any
   ↳ java.security.spec.ECPrivateKeySpec

This immutable class specifies an elliptic curve private key with its associated parameters.

Summary

Public constructors

Creates a new ECPrivateKeySpec with the specified parameter values.

Public methods
open ECParameterSpec!

Returns the associated elliptic curve domain parameters.

open BigInteger!

Returns the private value S.

Public constructors

ECPrivateKeySpec

Added in API level 1
ECPrivateKeySpec(
    s: BigInteger!,
    params: ECParameterSpec!)

Creates a new ECPrivateKeySpec with the specified parameter values.

Parameters
s BigInteger!: the private value.
params ECParameterSpec!: the associated elliptic curve domain parameters.
Exceptions
java.lang.NullPointerException if s or params is null.

Public methods

getParams

Added in API level 1
open fun getParams(): ECParameterSpec!

Returns the associated elliptic curve domain parameters.

Return
ECParameterSpec! the EC domain parameters.

getS

Added in API level 1
open fun getS(): BigInteger!

Returns the private value S.

Return
BigInteger! the private value S.