MSMutableProtectedData updateData:error method
Replaces the entire protected contents of the receiver with the contents of another data object. The new content will be protected immediately and does not including the metadata and the publishing license.
Signature
- (BOOL)updateData:(NSData *)data error:(NSError **)errorPtr;
Parameters
Name | Datatype | Notes |
---|---|---|
data |
NSData * |
Required. The data object that contains the plaintext data to be protected and replace the data of the receiver. |
errorPtr |
NSError ** |
Optional. If an error occurs, contains the error code and details. |
Returns
Type: BOOL
YES if the operation is successful; otherwise, NO. If the operation isn't successful, the errorPtr parameter references an NSError object that contains more information about the error.
Defined in
MSMutableProtectedData.h
Supported Platforms
Minimum supported OS versions |
iOS 7.0 and OS X 10.8 |