Top Description Fields Constructors Methods
sun.security.util

public Class ECKeySizeParameterSpec

extends Object
implements AlgorithmParameterSpec
Class Inheritance
All Implemented Interfaces
java.security.spec.AlgorithmParameterSpec
Imports
java.security.spec.AlgorithmParameterSpec

This immutable class is used when randomly generating a key pair and the consumer only specifies the length of the key and therefore a curve for that key size must be picked from the list of supported curves using this spec.
See Also
AlgorithmParameterSpec, ECGenParameterSpec

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
ECKeySizeParameterSpec(int
the key size of the curve to lookup
keySize
)

Creates a parameter specification for EC curve generation using a standard (or predefined) key size keySize in order to generate the corresponding (precomputed) elliptic curve.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the standard or predefined key size.
getKeySize
()

Returns the key size of this spec.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keySizeback to summary
private final int keySize

Constructor Detail

ECKeySizeParameterSpecback to summary
public ECKeySizeParameterSpec(int keySize)

Creates a parameter specification for EC curve generation using a standard (or predefined) key size keySize in order to generate the corresponding (precomputed) elliptic curve.

Note, if the curve of the specified length is not supported, AlgorithmParameters.init will throw an exception.

Parameters
keySize:int

the key size of the curve to lookup

Method Detail

getKeySizeback to summary
public int getKeySize()

Returns the key size of this spec.

Returns:int

the standard or predefined key size.