[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/java/security/spec/ECPublicKeySpec [Back]  [Original]

ECPublicKeySpec  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 1

ECPublicKeySpec

public class ECPublicKeySpec
extends Object implements KeySpec

java.lang.Object
   ↳ java.security.spec.ECPublicKeySpec


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

See also:

Summary

Public constructors

ECPublicKeySpec(ECPoint w, ECParameterSpec params)

Creates a new ECPublicKeySpec with the specified parameter values.

Public methods

ECParameterSpec getParams()

Returns the associated elliptic curve domain parameters.

ECPoint getW()

Returns the public point W.

Inherited methods

Public constructors

ECPublicKeySpec

Added in API level 1
public ECPublicKeySpec (ECPoint w, 
                ECParameterSpec params)

Creates a new ECPublicKeySpec with the specified parameter values.

Parameters
w ECPoint: the public point.

params ECParameterSpec: the associated elliptic curve domain parameters.

Throws
IllegalArgumentException if w is point at infinity, i.e. ECPoint.POINT_INFINITY
NullPointerException if w or params is null.

Public methods

getParams

Added in API level 1
public ECParameterSpec getParams ()

Returns the associated elliptic curve domain parameters.

Returns
ECParameterSpec the EC domain parameters.

getW

Added in API level 1
public ECPoint getW ()

Returns the public point W.

Returns
ECPoint the public point W.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page