# ECPublicKey

public interface **ECPublicKey** implements [PublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/PublicKey.html) [ECKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECKey.html) The interface to an elliptic curve (EC) public key.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/PublicKey.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECKey.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html`

### Constant Summary

|---|---|---|
| long | [serialVersionUID](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECPublicKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility. |

### Inherited Constant Summary

From interface [java.security.PublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/PublicKey.html)

|---|---|---|
| long | [serialVersionUID](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/PublicKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |

From interface [java.security.Key](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html)

|---|---|---|
| long | [serialVersionUID](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |

### Public Method Summary

|---|---|
| abstract [ECPoint](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html) | [getW](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECPublicKey.html#getW())() Returns the public point W. |

### Inherited Method Summary

From interface [java.security.interfaces.ECKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECKey.html)

|---|---|
| abstract [ECParameterSpec](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECParameterSpec.html) | [getParams](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECKey.html#getParams())() Returns the domain parameters associated with this key. |

From interface [java.security.Key](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html)

|---|---|
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getAlgorithm](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html#getAlgorithm())() Returns the standard algorithm name for this key. |
| abstract byte\[\] | [getEncoded](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html#getEncoded())() Returns the key in its primary encoding format, or null if this key does not support encoding. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getFormat](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Key.html#getFormat())() Returns the name of the primary encoding format of this key, or null if this key does not support encoding. |

## Constants

#### public static final long
**serialVersionUID**

The class fingerprint that is set to indicate
serialization compatibility.
Constant Value: -3314988629879632826

## Public Methods

#### public abstract [ECPoint](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html)
**getW**
()

Returns the public point W.

##### Returns

- the public point W.