CodingKeys
The encoded representation of a subscriber’s key material.
enum CodingKeys
The encoded representation of a subscriber’s key material.
enum CodingKeys
import WebPush
struct UserAgentKeyMaterial
The set of cryptographic secrets shared by the browser (is. user agent) along with a subscription.
case publicKey
case authenticationSecret
init(from decoder: Decoder) throws
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)
typealias Salt = Data
The underlying type of an authentication secret.
protocol CodingKey : CustomDebugStringConvertible, CustomStringConvertible, Sendable
A type that can be used as a key for encoding and decoding.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(intValue: Int)
init?(rawValue: String)
init?(stringValue: String)
var debugDescription: String { get }
A textual representation of this key, suitable for debugging.
var description: String { get }
A textual representation of this key.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)