DataContainer
public final class DataContainer : TokenObject
Class that describes a data container object. Inherits from TokenObject.
-
Gets the application name of the data container, corresponding to the
CKA_APPLICATIONattribute of the object, as seen by the PKCS#11 interface.Declaration
Swift
public func getApplication() -> StringReturn Value
the
CKA_APPLICATIONattribute of the data container. -
Retrieves the data container data value.
Declaration
Swift
public func getValue(completionHandler: @escaping (_ data: Data?, _ error: NSError?) -> Void)Parameters
completionHandlerThe completion handler block to be called as soon as the operation has been performed. It takes the following parameters:
- data: the data container data value.
- error:
nilif the operation is successful; otherwise an error encapsulates the reason of failure.
Note
The completion handler is executed on the same type ofDispatchQueueas in the calling code. -
Modifies the data container data value.
Declaration
Swift
public func setValue(data: Data, completionHandler: @escaping (_ error: NSError?) -> Void)Parameters
datathe new data value
completionHandlerThe completion handler block to be called as soon as the operation has been performed. It takes the following parameter:
- error:
nilif the operation is successful; otherwise an error encapsulates the reason of failure.
Note
The completion handler is executed on the same type ofDispatchQueueas in the calling code. - error: