Skip to content

SshAlgorithmPreferences

[Source]

Per-category algorithm preference lists. Every parameter defaults to the implemented set, so construct with named arguments and override only what differs — e.g. SshAlgorithmPreferences(where cipher_client_to_server' = my_ciphers, cipher_server_to_client' = my_ciphers). Passing all six lists positionally is error-prone (they share a type, so a transposition compiles silently); prefer named arguments.

class val SshAlgorithmPreferences

Constructors

create

[Source]

new val create(
  kex': Array[String val] val = SshAlgorithmDefaults.kex(),
  host_key': Array[String val] val = SshAlgorithmDefaults.host_key(),
  cipher_client_to_server': Array[String val] val = SshAlgorithmDefaults.ciphers(),
  cipher_server_to_client': Array[String val] val = SshAlgorithmDefaults.ciphers(),
  mac_client_to_server': Array[String val] val = SshAlgorithmDefaults.macs(),
  mac_server_to_client': Array[String val] val = SshAlgorithmDefaults.macs())
: SshAlgorithmPreferences val^

Parameters

  • kex': Array[String val] val = SshAlgorithmDefaults.kex()
  • host_key': Array[String val] val = SshAlgorithmDefaults.host_key()
  • cipher_client_to_server': Array[String val] val = SshAlgorithmDefaults.ciphers()
  • cipher_server_to_client': Array[String val] val = SshAlgorithmDefaults.ciphers()
  • mac_client_to_server': Array[String val] val = SshAlgorithmDefaults.macs()
  • mac_server_to_client': Array[String val] val = SshAlgorithmDefaults.macs()

Returns


Public fields

let kex: Array[String val] val

[Source]


let host_key: Array[String val] val

[Source]


let cipher_client_to_server: Array[String val] val

[Source]


let cipher_server_to_client: Array[String val] val

[Source]


let mac_client_to_server: Array[String val] val

[Source]


let mac_server_to_client: Array[String val] val

[Source]