DBTEAMLOGCertificate
Objective-C
@interface DBTEAMLOGCertificate : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGCertificate : NSObject, DBSerializable, NSCopying
The Certificate
struct.
Certificate details.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Certificate subject.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull subject;
Swift
var subject: String { get }
-
Certificate issuer.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull issuer;
Swift
var issuer: String { get }
-
Certificate issue date.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull issueDate;
Swift
var issueDate: String { get }
-
Certificate expiration date.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull expirationDate;
Swift
var expirationDate: String { get }
-
Certificate serial number.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull serialNumber;
Swift
var serialNumber: String { get }
-
Certificate sha1 fingerprint.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull sha1Fingerprint;
Swift
var sha1Fingerprint: String { get }
-
Certificate common name.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *commonName;
Swift
var commonName: String? { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithSubject:(nonnull NSString *)subject issuer:(nonnull NSString *)issuer issueDate:(nonnull NSString *)issueDate expirationDate:(nonnull NSString *)expirationDate serialNumber:(nonnull NSString *)serialNumber sha1Fingerprint:(nonnull NSString *)sha1Fingerprint commonName:(nullable NSString *)commonName;
Swift
init(subject: String, issuer: String, issueDate: String, expirationDate: String, serialNumber: String, sha1Fingerprint: String, commonName: String?)
Parameters
subject
Certificate subject.
issuer
Certificate issuer.
issueDate
Certificate issue date.
expirationDate
Certificate expiration date.
serialNumber
Certificate serial number.
sha1Fingerprint
Certificate sha1 fingerprint.
commonName
Certificate common name.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithSubject:(nonnull NSString *)subject issuer:(nonnull NSString *)issuer issueDate:(nonnull NSString *)issueDate expirationDate:(nonnull NSString *)expirationDate serialNumber:(nonnull NSString *)serialNumber sha1Fingerprint:(nonnull NSString *)sha1Fingerprint;
Swift
init(subject: String, issuer: String, issueDate: String, expirationDate: String, serialNumber: String, sha1Fingerprint: String)
Parameters
subject
Certificate subject.
issuer
Certificate issuer.
issueDate
Certificate issue date.
expirationDate
Certificate expiration date.
serialNumber
Certificate serial number.
sha1Fingerprint
Certificate sha1 fingerprint.
Return Value
An initialized instance.