+ // RFC8332 rsa-sha2-256/rsa-sha2-512 are not a part of Mina's default set of signatures for clients as of 2.5.1.
+ // Add them to ensure interop with modern highly-secured devices.
+ private static final ImmutableList<NamedFactory<Signature>> FULL_SIGNATURE_PREFERENCE =
+ Streams.concat(DEFAULT_SIGNATURE_PREFERENCE.stream(), Arrays.asList(
+ BuiltinSignatures.rsaSHA512, BuiltinSignatures.rsaSHA256).stream())
+ .filter(BuiltinSignatures::isSupported)
+ .distinct()
+ .collect(ImmutableList.<NamedFactory<Signature>>toImmutableList());
+