SessionStorage

@objc(VSRSessionStorage)
public protocol SessionStorage

Protocol for session storage

  • Stores session

    Throws

    Depends on implementation

    Declaration

    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 implementation

    Declaration

    Swift

    @objc
    func deleteSession(participantIdentity: String, name: String?) throws

    Parameters

    participantIdentity

    participant identity

    name

    session name

  • Removes all sessions

    Throws

    Depends on implementation

    Declaration

    Swift

    @objc
    func reset() throws