Initializermochidev.swift-webpush 0.4.2WebPush
init(base64URLEncoded:)
Decode a key directly from a Base 64 (URL) encoded string, or throw an error if decoding failed.
init(base64URLEncoded: String) throws
Decode a key directly from a Base 64 (URL) encoded string, or throw an error if decoding failed.
init(base64URLEncoded: String) throws
import WebPush
struct Key
Represents the application server’s identification key that is used to confirm to a push service that the server connecting to it is the same one that was subscribed to.
enum VAPID
A set of types for Voluntary Application Server Identification, also known as VAPID.
@frozen struct String
A Unicode string value that is a collection of characters.
init()
Create a brand new VAPID signing key.
init(from decoder: any Decoder) throws
init(privateKey: P256.Signing.PrivateKey)
Initialize a key from a P256 SIgning Private Key.
var id: ID { get }
The public key component in a format suitable for user agents to consume.
static func == (lhs: Self, rhs: Self) -> Bool
func encode(to encoder: any Encoder) throws
func hash(into hasher: inout Hasher)
struct ID
The identifier for a private Key
’s public key.