PrivateKeyEC

public class PrivateKeyEC extends PrivateKey implements java.security.interfaces.ECPrivateKey

Class describes an EC private key object. Inherits from PrivateKey and implements java.security.interfaces.ECPrivateKey.

Note that the constructor is not intended to be called by user code. Such objects are constructed internally by the API.

Methods

getAlgorithm

public String getAlgorithm()

Returns algorithm of key, which is "EC".

Returns:

"EC".

getEncoded

public byte[] getEncoded()

The private key is not extractable from the card, thus this method is not available.

Throws:

getFormat

public String getFormat()

Returns the name of the primary encoding format of this key.

Returns:

always null, because the key does not support encoding (private key is not extractable).

getParams

public ECParameterSpec getParams()

Gets the elliptic curve parameters.

Returns:

the elliptic curve parameters.

getS

public BigInteger getS()

The private key is not extractable from the card, thus this method is not available.

Throws: