cryptoPolicy

Apply a freshly resolved SshCryptoPolicy before any explicit preference reordering. Resolve after installing platform crypto providers. The policy controls all algorithm categories, including public-key authentication, and enforces RSA/DH minimum key sizes. See SshCryptoPolicy for presets, custom expression syntax, and capability warnings.

Example: cryptoPolicy(SshCryptoPolicy.resolve(CryptoPolicyPreset.FUTURE)).