TokenContext
@objc(VSSTokenContext)
public class TokenContext : NSObject
Class used to provide additional info for AccessTokenProvider and explain why token is needed
-
Identity to use in token
Declaration
Swift
@objc public let identity: String?
-
Requested service
Declaration
Swift
@objc public let service: String
-
Operation for which token is needed CardManager uses following operations:
- “get”
- “search”
- “publish”
Declaration
Swift
@objc public let operation: String
-
AccessTokenProvider should reset cached token, if such exist
Declaration
Swift
@objc public let forceReload: Bool
-
Initializer
Declaration
Swift
@objc public init(identity: String? = nil, service: String, operation: String, forceReload: Bool = false)
Parameters
identity
Identity to use in token
service
Requested service
operation
Operation for which token is needed
forceReload
AccessTokenProvider should reset cached token, if such exist