Class SecurityUtils

java.lang.Object
org.apache.sshd.common.util.security.SecurityUtils

public final class SecurityUtils extends Object
Specific security providers related code
  • Field Details

    • BOUNCY_CASTLE

      public static final String BOUNCY_CASTLE
      Bouncycastle JCE provider name
      See Also:
    • EDDSA

      public static final String EDDSA
      EDDSA support - should match EdDSAKey.KEY_ALGORITHM
      See Also:
    • CURVE_ED25519_SHA512

      public static final String CURVE_ED25519_SHA512
      See Also:
    • MIN_DHGEX_KEY_SIZE_PROP

      public static final String MIN_DHGEX_KEY_SIZE_PROP
      System property used to configure the value for the minimum supported Diffie-Hellman Group Exchange key size. If not set, then an internal auto-discovery mechanism is employed. If set to negative value then Diffie-Hellman Group Exchange is disabled. If set to a negative value then Diffie-Hellman Group Exchange is disabled
      See Also:
    • MAX_DHGEX_KEY_SIZE_PROP

      public static final String MAX_DHGEX_KEY_SIZE_PROP
      System property used to configure the value for the maximum supported Diffie-Hellman Group Exchange key size. If not set, then an internal auto-discovery mechanism is employed. If set to negative value then Diffie-Hellman Group Exchange is disabled. If set to a negative value then Diffie-Hellman Group Exchange is disabled
      See Also:
    • MIN_DHGEX_KEY_SIZE

      public static final int MIN_DHGEX_KEY_SIZE
      The min. key size value used for testing whether Diffie-Hellman Group Exchange is supported or not. According to RFC 4419 section 3: "Servers and clients SHOULD support groups with a modulus length of k bits, where 1024 <= k <= 8192". Note: this has been amended by RFC 8270
      See Also:
    • PREFERRED_DHGEX_KEY_SIZE

      public static final int PREFERRED_DHGEX_KEY_SIZE
      See Also:
    • MAX_DHGEX_KEY_SIZE

      public static final int MAX_DHGEX_KEY_SIZE
      See Also:
    • SECURITY_PROVIDER_REGISTRARS

      public static final String SECURITY_PROVIDER_REGISTRARS
      Comma separated list of fully qualified SecurityProviderRegistrars to automatically register
      See Also:
    • DEFAULT_SECURITY_PROVIDER_REGISTRARS

      public static final List<String> DEFAULT_SECURITY_PROVIDER_REGISTRARS
    • REGISTER_BOUNCY_CASTLE_PROP

      @Deprecated public static final String REGISTER_BOUNCY_CASTLE_PROP
      Deprecated.
      Please use "org.apache.sshd.security.provider.BC.enabled"
      System property used to control whether to automatically register the Bouncyastle JCE provider
      See Also:
    • ECC_SUPPORTED_PROP

      public static final String ECC_SUPPORTED_PROP
      System property used to control whether Elliptic Curves are supported or not. If not set then the support is auto-detected. Note: if set to true it is up to the user to make sure that indeed there is a provider for them
      See Also:
    • EDDSA_SUPPORTED_PROP

      @Deprecated public static final String EDDSA_SUPPORTED_PROP
      Deprecated.
      Please use "org.apache.sshd.security.provider.EdDSA.enabled&qupt;
      System property used to decide whether EDDSA curves are supported or not (in addition or even in spite of isEDDSACurveSupported()). If not set or set to true, then the existence of the optional support classes determines the support.
      See Also:
    • PROP_DEFAULT_SECURITY_PROVIDER

      public static final String PROP_DEFAULT_SECURITY_PROVIDER
      See Also:
    • MIN_DHG_KEY_SIZE_HOLDER

      private static final AtomicInteger MIN_DHG_KEY_SIZE_HOLDER
    • MAX_DHG_KEY_SIZE_HOLDER

      private static final AtomicInteger MAX_DHG_KEY_SIZE_HOLDER
    • REGISTERED_PROVIDERS

      private static final Map<String,SecurityProviderRegistrar> REGISTERED_PROVIDERS
    • KEYPAIRS_PARSER_HODLER

      private static final AtomicReference<KeyPairResourceParser> KEYPAIRS_PARSER_HODLER
    • APRIORI_DISABLED_PROVIDERS

      private static final Set<String> APRIORI_DISABLED_PROVIDERS
    • REGISTRATION_STATE_HOLDER

      private static final AtomicBoolean REGISTRATION_STATE_HOLDER
    • SECURITY_ENTITY_FACTORIES

      private static final Map<Class<?>,Map<String,SecurityEntityFactory<?>>> SECURITY_ENTITY_FACTORIES
    • DEFAULT_PROVIDER_HOLDER

      private static final AtomicReference<SecurityProviderChoice> DEFAULT_PROVIDER_HOLDER
    • hasEcc

      private static Boolean hasEcc
  • Constructor Details

    • SecurityUtils

      private SecurityUtils()
  • Method Details