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