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