Added in API level 1
ECPublicKeySpec
open class ECPublicKeySpec : KeySpec
| kotlin.Any | |
| ↳ | java.security.spec.ECPublicKeySpec |
This immutable class specifies an elliptic curve public key with its associated parameters.
Summary
| Public constructors | |
|---|---|
ECPublicKeySpec(w: ECPoint!, params: ECParameterSpec!)Creates a new ECPublicKeySpec with the specified parameter values. | |
| Public methods | |
|---|---|
| open ECParameterSpec! | Returns the associated elliptic curve domain parameters. |
| open ECPoint! | getW()Returns the public point W. |
Public constructors
ECPublicKeySpec
Added in API level 1
ECPublicKeySpec(
w: ECPoint!,
params: ECParameterSpec!)
Creates a new ECPublicKeySpec with the specified parameter values.
| Parameters | |
|---|---|
w | ECPoint!: the public point. |
params | ECParameterSpec!: the associated elliptic curve domain parameters. |
| Exceptions | |
|---|---|
java.lang.NullPointerException | if w or params is null. |
java.lang.IllegalArgumentException | if w is point at infinity, i.e. ECPoint.POINT_INFINITY |
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. |
getW
Added in API level 1
open fun getW(): ECPoint!
Returns the public point W.
| Return | |
|---|---|
ECPoint! | the public point W. |