FMLiveSwitchAsymmetricKey Class Reference

An asymmetric key. More...

Instance Methods

(bool) - hasPrivate
 Returns true if the key contains private information. More...
 
(bool) - hasPublic
 Returns true if the key contains public information. More...
 
(instancetype) - init
 
(FMLiveSwitchAsymmetricKeyType) - type
 Gets the key type. More...
 

Class Methods

(FMLiveSwitchAsymmetricKey *) + asymmetricKey
 
(FMLiveSwitchAsymmetricKey *) + createKeyWithKeyType:
 Creates a key. More...
 

Detailed Description

An asymmetric key.

Method Documentation

◆ asymmetricKey

+ (FMLiveSwitchAsymmetricKey*) asymmetricKey

◆ createKeyWithKeyType:

+ (FMLiveSwitchAsymmetricKey*) createKeyWithKeyType: (FMLiveSwitchAsymmetricKeyType)  keyType

Creates a key.

Parameters
keyTypeThe key type.

◆ hasPrivate

- (bool) hasPrivate

Returns true if the key contains private information.

Implemented in FMLiveSwitchRsaKey, and FMLiveSwitchEcdsaKey.

◆ hasPublic

- (bool) hasPublic

Returns true if the key contains public information.

Implemented in FMLiveSwitchRsaKey, and FMLiveSwitchEcdsaKey.

◆ init

- (instancetype) init

◆ type

- (FMLiveSwitchAsymmetricKeyType) type

Gets the key type.

Implemented in FMLiveSwitchRsaKey, and FMLiveSwitchEcdsaKey.