The metadata of the signature used to validate a promotional offer.
@DeprecationSummary { Sign promotional offers with JWS and use ``Product/PurchaseOption/promotion)`` instead. }
Create a new signature to validate a promotional offer.
- Parameters:
- keyID: The key ID of the private key used to generate `signature`. The private key and key ID
can be generated on App Store Connect.
- nonce: The nonce used in `signature`.
- timestamp: The time the signature was generated in milliseconds since 1970.
- signature: The cryptographic signature of the offer parameters, generated on your server.
get · iOS 17.4+ · Deprecated in iOS 26.0
keyID
TypeScript
get keyID(): string
Swift declaration
var keyID: String
The key ID of the private key used to generate `signature`. The private key and key ID
can be generated on App Store Connect.
set · iOS 17.4+ · Deprecated in iOS 26.0
keyID
TypeScript
set keyID(value: string)
Swift declaration
var keyID: String
The key ID of the private key used to generate `signature`. The private key and key ID
can be generated on App Store Connect.
get · iOS 17.4+ · Deprecated in iOS 26.0
nonce
TypeScript
get nonce(): string
Swift declaration
var nonce: UUID
The nonce used in `signature`.
set · iOS 17.4+ · Deprecated in iOS 26.0
nonce
TypeScript
set nonce(value: string)
Swift declaration
var nonce: UUID
The nonce used in `signature`.
get · iOS 17.4+ · Deprecated in iOS 26.0
signature
TypeScript
get signature(): ArrayBuffer
Swift declaration
var signature: Data
The cryptographic signature of the offer parameters, generated on your server.
set · iOS 17.4+ · Deprecated in iOS 26.0
signature
TypeScript
set signature(value: ArrayBuffer)
Swift declaration
var signature: Data
The cryptographic signature of the offer parameters, generated on your server.
get · iOS 17.4+ · Deprecated in iOS 26.0
timestamp
TypeScript
get timestamp(): number
Swift declaration
var timestamp: Int
The time the signature was generated in milliseconds since 1970.
set · iOS 17.4+ · Deprecated in iOS 26.0
timestamp
TypeScript
set timestamp(value: number)
Swift declaration
var timestamp: Int
The time the signature was generated in milliseconds since 1970.