A protocol used by SDL Security libraries.
Warning
Used internallyThe app id of the app
@property (nonatomic, copy) NSString *_Nonnull appId;
var appId: String { get set }
Initialize the SDL security library with the app’s id and a completion handler
- (void)initializeWithAppId:(nonnull NSString *)appId
completionHandler:
(nonnull void (^)(NSError *_Nullable))completionHandler;
func initialize(withAppId appId: String) async throws
The app’s id
A handler for when the security library is initialized
Stop the security library
- (void)stop;
func stop()
Run the SSL/TLS handshake
- (nullable NSData *)runHandshakeWithClientData:(nonnull NSData *)data
error:(NSError *_Nullable *_Nullable)
error;
func runHandshake(withClientData data: Data) throws -> Data
The client data for the handshake
A returnable error
The server handshake data
Encrypt data using SSL/TLS
- (nullable NSData *)encryptData:(nonnull NSData *)data
withError:(NSError *_Nullable *_Nullable)error;
func encryptData(_ data: Data) throws -> Data
The data to encrypt
A returnable error
The encrypted data
Decrypt data using SSL/TLS
- (nullable NSData *)decryptData:(nonnull NSData *)data
withError:(NSError *_Nullable *_Nullable)error;
func decryptData(_ data: Data) throws -> Data
The data to decrypt
A returnable error
The decrypted data
The vehicle makes this security library covers
+ (nonnull NSSet<NSString *> *)availableMakes;
static func availableMakes() -> Set<String>
The makes