SessionStorage
@objc(VSRSessionStorage)
public protocol SessionStorage
Protocol for session storage
-
Stores session
Throws
Depends on implementationDeclaration
Swift
@objc func storeSession(_ session: SecureSession) throws
Parameters
session
session to store
-
Retrieves session
Declaration
Swift
@objc func retrieveSession(participantIdentity: String, name: String) -> SecureSession?
Parameters
participantIdentity
participant identity
name
session name
Return Value
Stored session if found, nil otherwise
-
Deletes session
Throws
Depends on implementationDeclaration
Swift
@objc func deleteSession(participantIdentity: String, name: String?) throws
Parameters
participantIdentity
participant identity
name
session name
-
Removes all sessions
Throws
Depends on implementationDeclaration
Swift
@objc func reset() throws