PrivateKeyRSA

public class PrivateKeyRSA extends PrivateKey implements java.security.interfaces.RSAPrivateCrtKey

Class describes a RSA private key object. Inherits from PrivateKey and implements java.security.interfaces.RSAPrivateCrtKey.

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 "RSA".

Returns:

"RSA".

getCrtCoefficient

public BigInteger getCrtCoefficient()

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

Throws:

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).

getModulus

public BigInteger getModulus()

Gets the modulus.

Returns:

the modulus.

getPrimeExponentP

public BigInteger getPrimeExponentP()

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

Throws:

getPrimeExponentQ

public BigInteger getPrimeExponentQ()

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

Throws:

getPrimeP

public BigInteger getPrimeP()

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

Throws:

getPrimeQ

public BigInteger getPrimeQ()

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

Throws:

getPrivateExponent

public BigInteger getPrivateExponent()

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

Throws:

getPublicExponent

public BigInteger getPublicExponent()

Gets the public exponent.

Returns:

the public exponent.