CloudKeyStorageProtocol
public protocol CloudKeyStorageProtocol
Cloud KeyStorage protocol
-
Store entries to cloud
Declaration
Swift
func storeEntries(_ keyEntries: [KeyknoxKeyEntry]) -> GenericOperation<[CloudEntry]>
Parameters
keyEntries
Entries to store
Return Value
GenericOperation<[CloudEntry]>
-
Store entry to cloud
Declaration
Swift
func storeEntry(withName name: String, data: Data, meta: [String : String]?) -> GenericOperation<CloudEntry>
Parameters
name
name
data
data
meta
meta
Return Value
GenericOperation
-
Update entry in Cloud
Declaration
Swift
func updateEntry(withName name: String, data: Data, meta: [String : String]?) -> GenericOperation<CloudEntry>
Parameters
name
name
data
data
meta
meta
Return Value
GenericOperation
-
Returns all entries loaded from Cloud
Throws
Depends on implementationDeclaration
Swift
func retrieveAllEntries() throws -> [CloudEntry]
Return Value
All entries
-
Retrieve entry loaded from Cloud
Throws
Depends on implementationDeclaration
Swift
func retrieveEntry(withName name: String) throws -> CloudEntry
Parameters
name
name
Return Value
Entry
-
Check if entry exists in list of loaded from Cloud entries
Throws
Depends on implementationDeclaration
Swift
func existsEntry(withName name: String) throws -> Bool
Parameters
name
entry name
Return Value
true if entry exists, false - otherwise
-
Deletes entry from Cloud
Declaration
Swift
func deleteEntry(withName name: String) -> GenericOperation<Void>
Parameters
name
entry name
Return Value
GenericOperation
-
Deletes entries from Cloud
Declaration
Swift
func deleteEntries(withNames names: [String]) -> GenericOperation<Void>
Parameters
names
names of entries to delete
Return Value
GenericOperation
-
Deletes all entries from Cloud
Declaration
Swift
func deleteAllEntries() -> GenericOperation<Void>
Return Value
GenericOperation
-
Retrieves entries from Cloud
Declaration
Swift
func retrieveCloudEntries() -> GenericOperation<Void>
Return Value
GenericOperation
-
Updated recipients. See KeyknoxManager.updateRecipients
Declaration
Swift
func updateRecipients(newPublicKeys: [VirgilPublicKey]?, newPrivateKey: VirgilPrivateKey?) -> GenericOperation<Void>
Parameters
newPublicKeys
New public keys
newPrivateKey
New private key
Return Value
GenericOperation