Key

public abstract class Key extends TokenObject

Abstract class describes a key object. Inherits from TokenObject.

Methods

getAlgorithmName

public String getAlgorithmName()

Gets the algorithm of the key. The only possible value is currently "RSA".

Returns:the algorithm of the key.

getKeyLength

public int getKeyLength()

Gets the key length, in bits.

Returns:the key length.