SecureChatContext
@objc(VSRSecureChatContext)
open class SecureChatContext : NSObject
SecureChat context
- Tag: SecureChatContext
-
User’s identity card id
Declaration
Swift
@objc public let identityCard: Card
-
User’s identity private key (corresponding to public key in identityCard)
Declaration
Swift
@objc public let identityPrivateKey: VirgilPrivateKey
-
Time that one-time key lives in the storage after been marked as orphaned. Seconds
Declaration
Swift
@objc public var orphanedOneTimeKeyTtl: TimeInterval
-
Time that long-term key is been used before rotation. Seconds
Declaration
Swift
@objc public var longTermKeyTtl: TimeInterval
-
Time that long-term key lives in the storage after been marked as outdated. Seconds
Declaration
Swift
@objc public var outdatedLongTermKeyTtl: TimeInterval
-
Desired number of one-time keys
Declaration
Swift
@objc public var desiredNumberOfOneTimeKeys: Int
-
App name, defaults to Bundle.main.bundleIdentifier
Declaration
Swift
@objc public var appName: String?
-
App group
Declaration
Swift
@objc public var appGroup: String?
-
Ratchet client
Declaration
Swift
@objc public var client: RatchetClient
-
Undocumented
Declaration
Swift
@objc public var enablePostQuantum: Bool
-
Initializer
Declaration
Swift
@objc public init(identityCard: Card, identityPrivateKey: VirgilPrivateKey, accessTokenProvider: AccessTokenProvider, enablePostQuantum: Bool)
Parameters
identityCard
user’s identity card
identityPrivateKey
user’s identity private key (corresponding to public key in identityCard)
accessTokenProvider
access token provider