You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.debug("A shared secret could not be derived from the subscriber's public key and the newly-generated private key.", metadata:["error":"\(error)"])
414
414
throwBadSubscriberError()
@@ -689,6 +689,7 @@ extension WebPushManager {
689
689
690
690
/// A message originally sent via ``WebPushManager/send(string:to:expiration:urgency:)``
691
691
case string(String)
692
+
692
693
/// A message originally sent via ``WebPushManager/send(json:to:expiration:urgency:)``
693
694
case json(anyEncodable&Sendable)
694
695
@@ -737,16 +738,37 @@ extension WebPushManager {
737
738
738
739
/// An internal type representing the executor for a push message.
739
740
packageenumExecutor:Sendable{
741
+
/// A Private Key and Shared Secret provider.
742
+
packageenumKeyProvider:Sendable{
743
+
/// Generate a new Private Key and Shared Secret when asked.
744
+
case generateNew
745
+
746
+
/// Used a shared generator to provide a Private Key and Shared Secret when asked.
747
+
case shared(@Sendable(P256.KeyAgreement.PublicKey)throws->(P256.KeyAgreement.PrivateKey,SharedSecret))
748
+
749
+
/// Generate the Private Key and Shared Secret against a provided Public Key.
0 commit comments