JWS
public struct JWS
extension JWS: DigitallySignedMessage
Represents a JSON Web Signature (https://datatracker.ietf.org/doc/html/rfc7515)
-
A
Data
instance of the JSON object that represents the data/message.Declaration
Swift
public let jwsPayload: Data!
-
Can be initialised with a string representing JWS Since initialisation can fail for various reasons errors are thrown indicating the reason.
Declaration
Swift
public init(serializedJWS jws: String) throws
-
Undocumented
Declaration
Swift
static func isSupported(algorithm: String) throws -> Bool
-
Declaration
Swift
public var payload: Data { get }
-
Declaration
Swift
public var algorithm: DigitalSignatureAlgorithm { get }
-
Declaration
Swift
public var signature: Data { get }