# EdECPublicKeySpec

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Ctors](https://developer.android.com/reference/java/security/spec/EdECPublicKeySpec#pubctors)\|[Methods](https://developer.android.com/reference/java/security/spec/EdECPublicKeySpec#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/java/security/spec/EdECPublicKeySpec#inhmethods)  

# EdECPublicKeySpec

`
public

final

class
EdECPublicKeySpec
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[KeySpec](https://developer.android.com/reference/java/security/spec/KeySpec)`


`

|---|--------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | java.security.spec.EdECPublicKeySpec |

<br />

*** ** * ** ***

A class representing elliptic curve public keys as defined in[RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)](https://tools.ietf.org/html/rfc8032), including the curve and other algorithm parameters. The public key is a point on the curve, which is represented using an`EdECPoint`.

## Summary

|                                                                                                                                                                                                                              ### Public constructors                                                                                                                                                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[EdECPublicKeySpec](https://developer.android.com/reference/java/security/spec/EdECPublicKeySpec#EdECPublicKeySpec(java.security.spec.NamedParameterSpec,%20java.security.spec.EdECPoint))`(`[NamedParameterSpec](https://developer.android.com/reference/java/security/spec/NamedParameterSpec)` params, `[EdECPoint](https://developer.android.com/reference/java/security/spec/EdECPoint)` point) ` Construct a public key spec using the supplied parameters and point. |

|                                                                                                                                      ### Public methods                                                                                                                                      ||
|--------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[NamedParameterSpec](https://developer.android.com/reference/java/security/spec/NamedParameterSpec) | ` `[getParams](https://developer.android.com/reference/java/security/spec/EdECPublicKeySpec#getParams())`() ` Get the algorithm parameters that define the curve and other settings. |
| ` `[EdECPoint](https://developer.android.com/reference/java/security/spec/EdECPoint)                   | ` `[getPoint](https://developer.android.com/reference/java/security/spec/EdECPublicKeySpec#getPoint())`() ` Get the point representing the public key.                               |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### EdECPublicKeySpec

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public EdECPublicKeySpec (NamedParameterSpec params, 
                EdECPoint point)
```

Construct a public key spec using the supplied parameters and point.

<br />

|                              Parameters                              ||
|----------|------------------------------------------------------------|
| `params` | `NamedParameterSpec`: the algorithm parameters. <br />     |
| `point`  | `EdECPoint`: the point representing the public key. <br /> |

|                                                           Throws                                                            ||
|------------------------------------------------------------------------------------------------|-----------------------------|
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException) | if`params`or`point`is null. |

## Public methods

### getParams

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public NamedParameterSpec getParams ()
```

Get the algorithm parameters that define the curve and other settings.

<br />

|                                                           Returns                                                           ||
|-----------------------------------------------------------------------------------------------------|------------------------|
| [NamedParameterSpec](https://developer.android.com/reference/java/security/spec/NamedParameterSpec) | the parameters. <br /> |

### getPoint

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public EdECPoint getPoint ()
```

Get the point representing the public key.

<br />

|                                                               Returns                                                                ||
|-----------------------------------------------------------------------------------|---------------------------------------------------|
| [EdECPoint](https://developer.android.com/reference/java/security/spec/EdECPoint) | the`EdECPoint`representing the public key. <br /> |