KeyknoxClientProtocol
@objc(VSSKeyknoxClientProtocol)
public protocol KeyknoxClientProtocol
Protocol for KeyknoxClient
See: KeyknoxClient for default implementation
-
Push value to Keyknox service
Throws
Depends on implementationDeclaration
Swift
@objc func pushValue(params: KeyknoxPushParams?, meta: Data, value: Data, previousHash: Data?) throws -> EncryptedKeyknoxValue
Parameters
params
params
meta
meta data
value
encrypted blob
previousHash
hash of previous blob
Return Value
EncryptedKeyknoxValue
-
Pulls values from Keyknox service
Throws
Depends on implementationDeclaration
Swift
@objc func pullValue(params: KeyknoxPullParams?) throws -> EncryptedKeyknoxValue
Parameters
params
Pull params
Return Value
EncryptedKeyknoxValue
-
Get keys for given root
Throws
Depends on implementationDeclaration
Swift
@objc func getKeys(params: KeyknoxGetKeysParams) throws -> Set<String>
Parameters
params
Get keys params
Return Value
Array of keys
-
Resets Keyknox value (makes it empty)
Throws
Depends on implementationDeclaration
Swift
@objc func resetValue(params: KeyknoxResetParams?) throws -> DecryptedKeyknoxValue
Parameters
params
Reset params
Return Value
DecryptedKeyknoxValue
-
Deletes recipient
Throws
Depends on implementationDeclaration
Swift
@objc func deleteRecipient(params: KeyknoxDeleteRecipientParams) throws -> DecryptedKeyknoxValue
Parameters
params
Delete recipient params
Return Value
DecryptedKeyknoxValue