Protocol
JWTAlgorithm
Algorithm powering a
JWTSigner.protocol JWTAlgorithm
Topics
Instance Properties
var name: StringUnique JWT-standard name for this algorithm.
Instance Methods
func sign<Plaintext>(Plaintext) throws -> [UInt8]Creates a signature from the supplied plaintext.func verify<Signature, Plaintext>(Signature, signs: Plaintext) throws -> BoolReturnstrueif the signature was creating by signing the plaintext.