Class SunECSecurityProviderRegistrar

All Implemented Interfaces:
NamedResource, OptionalFeature, PropertyResolver, PublicKeyFactory, SecurityProviderChoice, SecurityProviderRegistrar

public class SunECSecurityProviderRegistrar extends AbstractSecurityProviderRegistrar
This is registrar ensures that even if other registrars are active, we still use the Java built-in security provider at least for some security entities.

This registrar can be used to enforce using some security entities from the JDK's SunEC provider even if other registrars also provide the same entity. Care should be taken to use consistent configurations. For instance, to use EC keys from this provider instead of Bouncy Castle, all of "KeyPairGenerator", "KeyFactory", and "Signature" should be set correctly. Mixing SunEC keys with Bouncy Castle signatures won't work.

This registrar is enabled by default. It can be disabled via a system property org.apache.sshd.security.provider.SunECWrapper.enabled=false.

The registrar can be configured as usual. By default are enabled:

"Ed25519"
KeyFactory, KeyPairGenerator, and Signature, if "Ed25519" is supported by SunEC
"X25519"
KeyAgreement, KeyFactory, and KeyPairGenerator, if "X25519" is supported by SunEC
"X448"
KeyAgreement, KeyFactory, and KeyPairGenerator, if "X448" is supported by SunEC

Everything else is disabled.

Author:
Apache MINA SSHD Project