SDLEncryptionConfiguration Class Reference

Section Contents

Overview

The encryption configuration data

securityManagers

A set of security managers used to encrypt traffic data. Each OEM has their own proprietary security manager.

Objective-C

@property (nonatomic, copy, nullable) NSArray<Class<SDLSecurityType>> *securityManagers;

delegate

A delegate callback that will tell you when an acknowledgement has occurred for starting as secure service.

Objective-C

@property (nonatomic, weak, nullable) id<SDLServiceEncryptionDelegate> delegate;

Swift

weak var delegate: SDLServiceEncryptionDelegate? { get set }

+defaultConfiguration

Creates a default encryption configuration.

Objective-C

+ (nonnull instancetype)defaultConfiguration;

Swift

class func `default`() -> Self

Return Value

A default configuration that may be customized.

-initWithSecurityManagers:delegate:

Creates a secure configuration for each of the security managers provided.

Objective-C

- (nonnull instancetype)
    initWithSecurityManagers:
        (nullable NSArray<Class<SDLSecurityType>> *)securityManagers
                    delegate:
                        (nullable id<SDLServiceEncryptionDelegate>)delegate;

Parameters

securityManagers

The security managers to be used.

delegate

The delegate callback.

Return Value

The configuration