init(key:deprecatedKeys:contactInformation:expirationDuration:validityDuration:)

Initialize a configuration with a single primary key.

VAPIDConfiguration.swift:72
init(key: Key, deprecatedKeys: Set<Key>? = nil, contactInformation: ContactInformation, expirationDuration: Duration = .hours(22), validityDuration: Duration = .hours(20))

Parameters

key

The primary key to use when introducing your application server during registration.

deprecatedKeys

Suppoted, but deprecated, keys to use during push delivery if a subscriber requires them.

contactInformation

The contact information an administrator of a push service may use to contact you in the case of an issue.

expirationDuration

The number of seconds before a cached authentication header signed by this configuration fully expires.

validityDuration

The number of seconds before a cached authentication header signed by this configuration is renewed.