ChannelBinding
public struct ChannelBinding : Codable
A ChannelBinding
instance contains channel binding information that can be verified by the FIDO Server in order to detect and prevent MITM attacks.
-
The Base64url encoded hash of the TLS server certificate, if this is available.
Declaration
Swift
public let serverEndPoint: String?
-
The Base64url encoded, DER-encoded TLS server certificate, if this data is available to the FIDO UAF Client.
This field must be
nil
if the TLS server certificate is not available to the FIDO UAF Client.Declaration
Swift
public let tlsServerCertificate: String?
-
The Base64url encoded TLS channel
Finished
structure. It must benil
if this data is not available to the FIDO UAF Client.Declaration
Swift
public let tlsUnique: String?
-
The Base64url encoded serialized
JWK
structure using UTF-8 encoding.Declaration
Swift
public let cidPubKey: String?
-
Creates a new
ChannelBinding
instance.Declaration
Swift
public init(serverEndPoint: String? = nil, tlsServerCertificate: String? = nil, tlsUnique: String? = nil, cidPubKey: String? = nil)
Parameters
serverEndPoint
The Base64url encoded hash of the TLS server certificate, if this is available.
tlsServerCertificate
The Base64url url encoded, DER-encoded TLS server certificate, if this data is available to the FIDO UAF Client.
tlsUnique
The Base64url encoded TLS channel
Finished
structure. It must benil
if this data is not available to the FIDO UAF Client.cidPubKey
The Base64url encoded serialized
JWK
structure using UTF-8 encoding.