Initializermochidev.swift-webpush 0.4.2WebPush
init(from:)
Subscriber.swift:109init(from decoder: Decoder) throws
init(from decoder: Decoder) throws
s7WebPush20UserAgentKeyMaterialV4fromACs7Decoder_p_tKcfc
What are these?18YUT
import WebPush
struct UserAgentKeyMaterial
The set of cryptographic secrets shared by the browser (is. user agent) along with a subscription.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(publicKey: P256.KeyAgreement.PublicKey, authenticationSecret: Salt)
Initialize key material with a public key and authentication secret from a user agent.
init(publicKey: String, authenticationSecret: String) throws(UserAgentKeyMaterialError)
Initialize key material with a public key and authentication secret from a user agent.
var authenticationSecret: Salt
The authentication secret to validate our ability to send a subscriber push messages.
var publicKey: P256.KeyAgreement.PublicKey
The public key a shared secret can be derived from for message encryption.
static func == (lhs: UserAgentKeyMaterial, rhs: UserAgentKeyMaterial) -> Bool
func encode(to encoder: any Encoder) throws
func hash(into hasher: inout Hasher)
enum CodingKeys
The encoded representation of a subscriber’s key material.
typealias Salt = Data
The underlying type of an authentication secret.