Required Initializervapor.jwt-kit 5.1.2JWTKit
init(_:)
ECDSAKeyTypes.swift:52init?(_ key: X509.Certificate.PublicKey)
init?(_ key: X509.Certificate.PublicKey)
s6JWTKit14ECDSAPublicKeyPyxSg4X50911CertificateV06PublicC0Vcfc
What are these?7010N
import JWTKit
🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
protocol ECDSAPublicKey : Sendable
struct Certificate
struct PublicKey
A public key that can be used with a certificate.
init(compactRepresentation: some ContiguousBytes) throws
init(compressedRepresentation: some ContiguousBytes) throws
init<Bytes>(derRepresentation: Bytes) throws where Bytes : RandomAccessCollection, Bytes.Element == UInt8
init(pemRepresentation: String) throws
init(rawRepresentation: some ContiguousBytes) throws
init(x963Representation: some ContiguousBytes) throws
var compactRepresentation: Data? { get }
var compressedRepresentation: Data { get }
var derRepresentation: Data { get }
var pemRepresentation: String { get }
var rawRepresentation: Data { get }
var x963Representation: Data { get }
func isValidSignature(_ signature: some DataProtocol, for data: some Digest) throws -> Bool