SFSDKPushNotificationDecryption Class Reference

Inherits from NSObject
Declared in SFSDKPushNotificationDecryption.h

Other Methods

+ decryptNotificationContent:error:

Decrypts the given notification content. Leaves the content unchanged if it’s not encrypted.

+ (BOOL)decryptNotificationContent:(nonnull UNMutableNotificationContent *)notificationContent error:(NSError *_Nullable *_Nullable)error

Parameters

notificationContent

Content to decrypt.

error

The error associated with decryption, if an error occurs.

Return Value

YES on success, NO otherwise.

Declared In

SFSDKPushNotificationDecryption.h

Extension Methods

+ validateNotificationUserInfo:error:

+ (BOOL)validateNotificationUserInfo:(nonnull NSDictionary *)userInfo error:(NSError *_Nullable *_Nullable)error

+ getAESKeyFromSecret:error:

+ (nullable SFEncryptionKey *)getAESKeyFromSecret:(nonnull NSString *)secret error:(NSError *_Nullable *_Nullable)error

+ aesDecryptString:withKey:error:

+ (nullable NSString *)aesDecryptString:(nonnull NSString *)encryptedString withKey:(nonnull SFEncryptionKey *)key error:(NSError *_Nullable *_Nullable)error