CBLLicenseKeyOfflineToken

Objective-C

@protocol CBLLicenseKeyOfflineToken <NSObject>

Swift

protocol LicenseKeyOfflineToken : NSObjectProtocol

An offline activation token as issued by the Cascable licensing service when validating a CascableCore license key.

  • The token’s expiry date. The token can be used to maintain activation status without an internet connection until this date.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSDate *tokenExpiry;

    Swift

    var tokenExpiry: Date { get }
  • The token itself. This is an opaque data structure appropriate for storing in the Keychain, User Defaults, etc.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSData *tokenData;

    Swift

    var tokenData: Data { get }
  • Whether the token was newly-issued by the licensing service. If YES, your local storage should be updated with this new token. If NO, this is the same token that was passed in when applying your license key.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL wasRefreshed;

    Swift

    var wasRefreshed: Bool { get }