AWSSignatureSignerUtility
Objective-C
@interface AWSSignatureSignerUtility : NSObject
+ (NSData * _Nonnull)sha256HMacWithData:(NSData * _Nullable)data withKey:(NSData * _Nonnull)key;
+ (NSString * _Nonnull)hashString:(NSString * _Nullable)stringToHash;
/*!
@warning This function is deprecated and will be removed in an upcoming minor
version of the SDK. You should use hashData instead.
@deprecated Use hashData instead.
*/
+ (NSData * _Nonnull)hash:(NSData * _Nullable)dataToHash DEPRECATED_MSG_ATTRIBUTE("Use hashData instead.");
+ (NSData * _Nullable)hashData:(NSData * _Nullable)dataToHash;
+ (NSString * _Nonnull)hexEncode:(NSString * _Nullable)string;
+ (NSString * _Nullable)HMACSign:(NSData * _Nullable)data withKey:(NSString * _Nonnull)key usingAlgorithm:(uint32_t)algorithm;
@end
Swift
class AWSSignatureSignerUtility : NSObject
Undocumented
-
Undocumented
Declaration
Objective-C
+ (NSData * _Nonnull)sha256HMacWithData:(NSData * _Nullable)data withKey:(NSData * _Nonnull)key;
Swift
class func sha256HMac(with data: Data?, withKey key: Data) -> Data
-
Undocumented
Declaration
Objective-C
+ (NSString * _Nonnull)hashString:(NSString * _Nullable)stringToHash;
Swift
class func hashString(_ stringToHash: String?) -> String
-
Deprecated
Use hashData instead.
Undocumented
Declaration
Objective-C
+ (NSData *_Nonnull)hash:(NSData *_Nullable)dataToHash;
Swift
class func hash(_ dataToHash: Data?) -> Data
-
Undocumented
Declaration
Objective-C
+ (NSData * _Nullable)hashData:(NSData * _Nullable)dataToHash;
Swift
class func hashData(_ dataToHash: Data?) -> Data?
-
Undocumented
Declaration
Objective-C
+ (NSString * _Nonnull)hexEncode:(NSString * _Nullable)string;
Swift
class func hexEncode(_ string: String?) -> String
-
Undocumented
Declaration
Objective-C
+ (NSString * _Nullable)HMACSign:(NSData * _Nullable)data withKey:(NSString * _Nonnull)key usingAlgorithm:(uint32_t)algorithm;
Swift
class func hmacSign(_ data: Data?, withKey key: String, usingAlgorithm algorithm: UInt32) -> String?