Structureorlandos-nl.citadel 0.8.0Citadel
SSHHostKeyValidator
A host key validator that can be used to validate an SSH host key. This can be used to validate the host key against a set of trusted keys, or to accept any key.
ClientSession.swift:151struct SSHHostKeyValidator
Citizens in Citadel
Type members
static func acceptAnything(
) -> SSHHostKeyValidator Creates a new host key validator that will accept any host key. This is not recommended for production use.
static func custom(NIOSSHClientServerAuthenticationDelegate
) -> SSHHostKeyValidator Creates a new host key validator that will use the given custom validator. This can be used to implement custom host key validation logic.
static func trustedKeys(Set<NIOSSHPublicKey>
) -> SSHHostKeyValidator Creates a new host key validator that will validate the host key against the given set of trusted keys. If the host key is not in the set, the validation will fail.