class SealdUtils
objc
@interface SealdUtils : NSObjectSealdUtils is an interface with utility class methods.
| Members | Descriptions |
|---|---|
parseSessionIdFromFile:error: | Takes the path to an encrypted file, and returns the session id. |
parseSessionIdFromBytes:error: | Takes an encrypted file as bytes, and returns the session id. |
parseSessionIdFromMessage:error: | Takes an encrypted message, and returns the session id. |
parseSessionIdFromFile:error:
objc
+ (NSString *) parseSessionIdFromFile:(const NSString *_Nonnull)file
error:(NSError *_Nullable *)error;Takes the path to an encrypted file, and returns the session id.
Parameters
filePath to the encrypted file.errorThe error that occurred, if any.
Returns
The session id.
parseSessionIdFromBytes:error:
objc
+ (NSString *) parseSessionIdFromBytes:(const NSData *_Nonnull)bytes
error:(NSError *_Nullable *)error;Takes an encrypted file as bytes, and returns the session id.
Parameters
bytesThe encrypted file as bytes.errorThe error that occurred, if any.
Returns
The session id.
parseSessionIdFromMessage:error:
objc
+ (NSString *) parseSessionIdFromMessage:(const NSString *_Nonnull)message
error:(NSError *_Nullable *)error;Takes an encrypted message, and returns the session id.
Parameters
messageThe encrypted message.errorThe error that occurred, if any.
Returns
The session id.