Protocol
JWTAlgorithm
A protocol defining the necessary functionality for a JWT (JSON Web Token) algorithm. All algorithms conform to
JWTAlgorithm to provide custom signing and verification logic for JWT tokens.protocol JWTAlgorithm : Sendable
Topics
Instance Properties
var name: StringUnique JWT-standard name for this algorithm.
Instance Methods
func sign(some DataProtocol) throws -> [UInt8]Creates a signature from the supplied plaintext.func verify(some DataProtocol, signs: some DataProtocol) throws -> BoolReturnstrueif the signature was creating by signing the plaintext.
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype