to top
Android APIs
public class

ECPublicKeySpec

extends Object
implements KeySpec
java.lang.Object
   ↳ java.security.spec.ECPublicKeySpec

Class Overview

The parameters specifying an Elliptic Curve (EC) public key.

Summary

Public Constructors
ECPublicKeySpec(ECPoint w, ECParameterSpec params)
Creates a new ECPublicKey with the specified public elliptic curve point and parameter specification.
Public Methods
ECParameterSpec getParams()
Returns the domain parameter specification.
ECPoint getW()
Returns the public elliptic curve point W.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ECPublicKeySpec (ECPoint w, ECParameterSpec params)

Added in API level 1

Creates a new ECPublicKey with the specified public elliptic curve point and parameter specification.

Parameters
w the public elliptic curve point W.
params the domain parameter specification.
Throws
IllegalArgumentException if the specified point W is at infinity.

Public Methods

public ECParameterSpec getParams ()

Added in API level 1

Returns the domain parameter specification.

Returns
  • the domain parameter specification.

public ECPoint getW ()

Added in API level 1

Returns the public elliptic curve point W.

Returns
  • the public elliptic curve point W.