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.

getKeyType

public String getKeyType()

Gets string identifying the type of the key. The possible values are:

  • "publicKey"

  • "privateKey"

Returns:

the key type.

getkeyLength

public int getkeyLength()

Gets the key length, in bits.

Returns:

the key length.