Top Description Fields Constructors Methods
java.security.spec

public Class XECPublicKeySpec

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

A class representing elliptic curve public keys as defined in RFC 7748, including the curve and other algorithm parameters. The public key is a particular point on the curve, which is represented using only its u-coordinate. A u-coordinate is an element of the field of integers modulo some value that is determined by the algorithm parameters. This field element is represented by a BigInteger which may hold any value. That is, the BigInteger is not restricted to the range of canonical field elements.
Since
11

Field Summary

Modifier and TypeField and Description
private final AlgorithmParameterSpec
private final BigInteger
u

Constructor Summary

AccessConstructor and Description
public
XECPublicKeySpec(AlgorithmParameterSpec
the algorithm parameters
params
,
BigInteger
the u-coordinate of the point, represented using a BigInteger which may hold any value
u
)

Construct a public key spec using the supplied parameters and u coordinate.

Method Summary

Modifier and TypeMethod and Description
public AlgorithmParameterSpec

Returns:

the parameters
getParams
()

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

public BigInteger

Returns:

the u-coordinate, represented using a BigInteger which may hold any value
getU
()

Get the u coordinate of the point.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

paramsback to summary
private final AlgorithmParameterSpec params
uback to summary
private final BigInteger u

Constructor Detail

XECPublicKeySpecback to summary
public XECPublicKeySpec(AlgorithmParameterSpec params, BigInteger u)

Construct a public key spec using the supplied parameters and u coordinate.

Parameters
params:AlgorithmParameterSpec

the algorithm parameters

u:BigInteger

the u-coordinate of the point, represented using a BigInteger which may hold any value

Exceptions
NullPointerException:
if params or u is null.

Method Detail

getParamsback to summary
public AlgorithmParameterSpec getParams()

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

Returns:AlgorithmParameterSpec

the parameters

getUback to summary
public BigInteger getU()

Get the u coordinate of the point.

Returns:BigInteger

the u-coordinate, represented using a BigInteger which may hold any value