fm.liveswitch.AsymmetricKey Class Referenceabstract

An asymmetric key. More...

Public Member Functions

abstract fm.liveswitch.AsymmetricKeyType getType ()
 Gets the key type. More...
 
abstract boolean hasPrivate ()
 Returns. More...
 
abstract boolean hasPublic ()
 Returns. More...
 

Static Public Member Functions

static fm.liveswitch.AsymmetricKey createKey (fm.liveswitch.AsymmetricKeyType keyType)
 Creates a key. More...
 

Protected Member Functions

 AsymmetricKey ()
 

Detailed Description

An asymmetric key.

Constructor & Destructor Documentation

◆ AsymmetricKey()

fm.liveswitch.AsymmetricKey.AsymmetricKey ( )
protected

Member Function Documentation

◆ createKey()

static fm.liveswitch.AsymmetricKey fm.liveswitch.AsymmetricKey.createKey ( fm.liveswitch.AsymmetricKeyType  keyType)
static

Creates a key.

Parameters
keyTypeThe key type.

◆ getType()

abstract fm.liveswitch.AsymmetricKeyType fm.liveswitch.AsymmetricKey.getType ( )
abstract

Gets the key type.

Reimplemented in fm.liveswitch.RsaKey, and fm.liveswitch.EcdsaKey.

◆ hasPrivate()

abstract boolean fm.liveswitch.AsymmetricKey.hasPrivate ( )
abstract

Returns.

true

if the key contains private information.

Reimplemented in fm.liveswitch.RsaKey, and fm.liveswitch.EcdsaKey.

◆ hasPublic()

abstract boolean fm.liveswitch.AsymmetricKey.hasPublic ( )
abstract

Returns.

true

if the key contains public information.

Reimplemented in fm.liveswitch.RsaKey, and fm.liveswitch.EcdsaKey.