Top Description Fields Constructors Methods
java.security.spec

public final Class EdECPublicKeySpec

extends Object
implements KeySpec
Class Inheritance
All Implemented Interfaces
java.security.spec.KeySpec
Imports
java.util.Objects

A class representing elliptic curve public keys as defined in RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA), including the curve and other algorithm parameters. The public key is a point on the curve, which is represented using an EdECPoint.
Since
15

Field Summary

Modifier and TypeField and Description
private final NamedParameterSpec
private final EdECPoint

Constructor Summary

AccessConstructor and Description
public
EdECPublicKeySpec(NamedParameterSpec
the algorithm parameters.
params
,
EdECPoint
the point representing the public key.
point
)

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

Method Summary

Modifier and TypeMethod and Description
public NamedParameterSpec

Returns:

the parameters.
getParams
()

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

public EdECPoint

Returns:

the EdECPoint representing the public key.
getPoint
()

Get the point representing the public key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

paramsback to summary
private final NamedParameterSpec params
pointback to summary
private final EdECPoint point

Constructor Detail

EdECPublicKeySpecback to summary
public EdECPublicKeySpec(NamedParameterSpec params, EdECPoint point)

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

Parameters
params:NamedParameterSpec

the algorithm parameters.

point:EdECPoint

the point representing the public key.

Exceptions
NullPointerException:
if params or point is null.

Method Detail

getParamsback to summary
public NamedParameterSpec getParams()

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

Returns:NamedParameterSpec

the parameters.

getPointback to summary
public EdECPoint getPoint()

Get the point representing the public key.

Returns:EdECPoint

the EdECPoint representing the public key.