JWTHeaderField
JWTHeaderField.swift:7indirect enum JWTHeaderField
indirect enum JWTHeaderField
import JWTKit
🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
case null
case bool(Bool)
case int(Int)
case decimal(Double)
case string(String)
case array([JWTHeaderField])
case object([String : JWTHeaderField])
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol ExpressibleByArrayLiteral
A type that can be initialized using an array literal.
protocol ExpressibleByBooleanLiteral
A type that can be initialized with the Boolean literals true
and false
.
protocol ExpressibleByDictionaryLiteral
A type that can be initialized using a dictionary literal.
protocol ExpressibleByExtendedGraphemeClusterLiteral : ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single extended grapheme cluster.
protocol ExpressibleByFloatLiteral
A type that can be initialized with a floating-point literal.
protocol ExpressibleByIntegerLiteral
A type that can be initialized with an integer literal.
protocol ExpressibleByNilLiteral : ~Copyable
A type that can be initialized using the nil literal, nil
.
protocol ExpressibleByStringLiteral : ExpressibleByExtendedGraphemeClusterLiteral
A type that can be initialized with a string literal.
protocol ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single Unicode scalar value.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(arrayLiteral elements: JWTHeaderField...)
init(booleanLiteral value: BooleanLiteralType)
init(dictionaryLiteral elements: (String, JWTHeaderField)...)
init(floatLiteral value: FloatLiteralType)
init(from decoder: any Decoder) throws
init(integerLiteral value: IntegerLiteralType)
init(nilLiteral _: ())
init(stringLiteral value: StringLiteralType)
var asArray: [Self]? { get }
var asBool: Bool? { get }
var asDecimal: Double? { get }
var asInt: Int? { get }
var asObject: [String : Self]? { get }
var asString: String? { get }
var isNull: Bool { get }
func asArray<T>(of _: T.Type) throws -> [T]
func asObject<T>(of _: T.Type) throws -> [String : T]
func encode(to encoder: any Encoder) throws
init(extendedGraphemeClusterLiteral value: Self.StringLiteralType)
init(unicodeScalarLiteral value: Self.ExtendedGraphemeClusterLiteralType)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.