FileSessionStorage
@objc(VSRFileSessionStorage)
open class FileSessionStorage : NSObject, SessionStorage
FileSessionStorage using files
Note
This class is thread-safe-
Initializer
Declaration
Swift
@objc public init(appGroup: String?, identity: String, crypto: VirgilCrypto, identityKeyPair: VirgilKeyPair)Parameters
appGroupappGroup
identityidentity of this user
cryptoVirgilCrypto that will be forwarded to SecureSession
identityKeyPairKey pair to encrypt session
-
Stores session
Throws
Rethrows from FileSystemDeclaration
Swift
public func storeSession(_ session: SecureSession) throwsParameters
sessionsession to store
-
Retrieves session
Declaration
Swift
public func retrieveSession(participantIdentity: String, name: String) -> SecureSession?Parameters
participantIdentityparticipant identity
namesession name
Return Value
Stored session if found, nil otherwise
-
Deletes session
Throws
Rethrows from FileSystemDeclaration
Swift
public func deleteSession(participantIdentity: String, name: String?) throwsParameters
participantIdentityparticipant identity
namesession name
-
Removes all sessions
Throws
Rethrows from FileSystemDeclaration
Swift
public func reset() throws
FileSessionStorage Class Reference