FMLiveSwitchCertificate Class Reference

A certificate to be used for secure communication. More...

Instance Methods

(TFingerprint) - calculateFingerprintWithAlgorithm:
 Calculates a fingerprint for this certificate. More...
 
(TCertificate) - clone
 Clones this instance. More...
 
(TCertificate) - createCertificate
 Creates a certificate. More...
 
(TFingerprint) - createFingerprintWithAlgorithm:value:
 Creates a fingerprint. More...
 
(NSDate *) - effectiveDate
 Gets the effective date. More...
 
(NSDate *) - expirationDate
 Gets the expiration date. More...
 
(FMLiveSwitchDataBuffer *) - getBuffer
 Serializes this certificate to binary. More...
 
(NSMutableData *) - getBytes
 Serializes this certificate to binary. More...
 
(NSString *) - id
 Gets the identifier. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchCertificate`2 class. More...
 
(bool) - isExpired
 Gets whether the certificate is expired. More...
 
(bool) - isExpiring
 Gets whether the certificate is expiring within 24 hours. More...
 
(bool) - isSealed
 Gets a value indicating whether this certificate is sealed and can no longer be modified. More...
 
(NSString *) - issuerName
 Gets the name of the issuer. More...
 
(FMLiveSwitchAsymmetricKey *) - key
 Gets the asymmetric key. More...
 
(void) - regenerate
 Regenerates the certificate's cryptography data using an expiration date of 10 days from now. More...
 
(void) - regenerateWithExpirationDate:
 Regenerates the certificate's cryptography data using the given expiration date. More...
 
(void) - setAutoRegenerate:
 Sets whether the certificate's cryptography data should be automatically regenerated when it is about to expire. More...
 
(void) - setId:
 Sets the identifier. More...
 
(void) - setKey:
 Sets the asymmetric key. More...
 
(NSString *) - subjectName
 Gets the name of the subject. More...
 

Class Methods

(FMLiveSwitchCertificate *) + certificate
 Initializes a new instance of the FMLiveSwitchCertificate`2 class. More...
 

Protected Attributes

 __pad0__: NSObject- (bool) autoRegenerate
 

Detailed Description

A certificate to be used for secure communication.

Method Documentation

◆ calculateFingerprintWithAlgorithm:

- (TFingerprint) calculateFingerprintWithAlgorithm: (NSString *)  algorithm

Calculates a fingerprint for this certificate.

Parameters
algorithmThe algorithm.

◆ certificate

+ (FMLiveSwitchCertificate*) certificate

Initializes a new instance of the FMLiveSwitchCertificate`2 class.

◆ clone

- (TCertificate) clone

Clones this instance.

◆ createCertificate

- (TCertificate) createCertificate

Creates a certificate.

Implemented in FMLiveSwitchTlsCertificate, and FMLiveSwitchDtlsCertificate.

◆ createFingerprintWithAlgorithm:value:

- (TFingerprint) createFingerprintWithAlgorithm: (NSString *)  algorithm
value: (NSString *)  value 

Creates a fingerprint.

Parameters
algorithmThe algorithm.
valueThe value.

Implemented in FMLiveSwitchTlsCertificate, and FMLiveSwitchDtlsCertificate.

◆ effectiveDate

- (NSDate*) effectiveDate

Gets the effective date.

◆ expirationDate

- (NSDate*) expirationDate

Gets the expiration date.

◆ getBuffer

- (FMLiveSwitchDataBuffer*) getBuffer

Serializes this certificate to binary.

◆ getBytes

- (NSMutableData*) getBytes

Serializes this certificate to binary.

◆ id

- (NSString*) id

Gets the identifier.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchCertificate`2 class.

Implemented in FMLiveSwitchTlsCertificate, and FMLiveSwitchDtlsCertificate.

◆ isExpired

- (bool) isExpired

Gets whether the certificate is expired.

◆ isExpiring

- (bool) isExpiring

Gets whether the certificate is expiring within 24 hours.

◆ isSealed

- (bool) isSealed

Gets a value indicating whether this certificate is sealed and can no longer be modified.

◆ issuerName

- (NSString*) issuerName

Gets the name of the issuer.

◆ key

Gets the asymmetric key.

◆ regenerate

- (void) regenerate

Regenerates the certificate's cryptography data using an expiration date of 10 days from now.

◆ regenerateWithExpirationDate:

- (void) regenerateWithExpirationDate: (NSDate *)  expirationDate

Regenerates the certificate's cryptography data using the given expiration date.

Parameters
expirationDateThe expiration date.

◆ setAutoRegenerate:

- (void) setAutoRegenerate: (bool)  value

Sets whether the certificate's cryptography data should be automatically regenerated when it is about to expire.

Defaults to true.

◆ setId:

- (void) setId: (NSString *)  value

Sets the identifier.

◆ setKey:

- (void) setKey: (FMLiveSwitchAsymmetricKey *)  value

Sets the asymmetric key.

◆ subjectName

- (NSString*) subjectName

Gets the name of the subject.

Member Data Documentation

◆ __pad0__

- __pad0__
protected