SshCryptoPolicy

Resolved connection policy. Obtain a fresh snapshot with resolve after installing crypto providers. Expressions contain bare names (an exact list), or individually prefixed ^ / + / - entries. Custom overrides always use DEFAULT as their base. Protocol KEX markers are managed separately.

Preset definitions evolve with library releases:

An exact expression is an ordered comma-separated list of names. Delta entries individually use ^ (prepend), + (append), or - (exclude), for example ^curve25519-sha256,+diffie-hellman-group1-sha1,-ecdh-sha2-nistp256. Unsupported or unavailable positive entries are skipped and reported in warnings; callers should preserve the original expression. minimumRsaBits and minimumDhBits are independent numeric requirements that explicit algorithm selections cannot bypass. The group1 example therefore also requires minimumDhBits = 1024.

Install platform crypto providers before resolving and apply the snapshot with SshClientConfig.Builder.cryptoPolicy. Persist user expressions and preset names, rather than the runtime catalog or resolved algorithm lists. Public-key authentication selections are independent of server host-key selections.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard