Static Methodorlandos-nl.citadel 0.8.0Citadel
rsa(username:privateKey:)
Creates a public key based authentication method.
SSHAuthenticationMethod.swift:42static func rsa(username: String, privateKey: Insecure.RSA.PrivateKey) -> SSHAuthenticationMethod
username: The username to authenticate with.
privateKey: The private key to authenticate with.
Other members in extension
Type members
static func custom(NIOSSHClientUserAuthenticationDelegate
) -> SSHAuthenticationMethod static func ed25519(username: String, privateKey: Curve25519.Signing.PrivateKey
) -> SSHAuthenticationMethod Creates a public key based authentication method.
static func p256(username: String, privateKey: P256.Signing.PrivateKey
) -> SSHAuthenticationMethod Creates a public key based authentication method.
static func p384(username: String, privateKey: P384.Signing.PrivateKey
) -> SSHAuthenticationMethod Creates a public key based authentication method.
static func p521(username: String, privateKey: P521.Signing.PrivateKey
) -> SSHAuthenticationMethod Creates a public key based authentication method.
static func passwordBased(username: String, password: String
) -> SSHAuthenticationMethod Creates a password based authentication method.