| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| public static final String | BOUNCY_CASTLE
Bouncy Castle |
| public static final String | |
| private static final AtomicReference | |
| public static final List | |
| public static final String | ECC_SUPPORTED_PROP
System property used to control whether Elliptic Curves are supported or not. |
| public static final String | |
| public static final String | EDDSA
EDDSA support - should match |
| 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()).
|
| public static final String | FIPS_ENABLED
A boolean system property that can be set to |
| private static final AtomicReference | |
| private static Boolean | |
| private static final AtomicReference | |
| private static final AtomicInteger | |
| public static final int | |
| 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. |
| private static final AtomicInteger | |
| public static final int | MIN_DHGEX_KEY_SIZE
The min. |
| 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. |
| public static final int | |
| public static final String | |
| 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
|
| private static final Map | |
| private static final AtomicBoolean | |
| private static final Map | |
| public static final String | SECURITY_PROVIDER_REGISTRARS
Comma separated list of fully qualified |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | |
| public static AbstractGeneratorHostKeyProvider | |
| public static <T> SecurityEntityFactory | createSecurityEntityFactory(Class<T> entityType, Predicate<? super SecurityProviderRegistrar> entitySelector)
|
| public static KeyPair | |
| public static PrivateKey | |
| public static PublicKey | |
| public static Set | |
| public static Decryptor | |
| public static KeyPairResourceParser | |
| public static CertificateFactory | |
| public static Cipher | |
| public static SecurityProviderChoice | |
| public static int | |
| public static Class | |
| public static PublicKeyEntryDecoder | |
| public static Class | |
| public static Signature | |
| public static Optional | |
| public static KeyAgreement | |
| public static KeyFactory | |
| public static KeyPairGenerator | |
| public static KeyPairResourceParser | |
| public static Mac | |
| public static int | Returns: The maximum supported Diffie-Hellman Group Exchange key size, or non-positive if not supported
|
| public static MessageDigest | |
| public static int | Returns: The minimum supported Diffie-Hellman Group Exchange key size, or non-positive if not supported
|
| public static PrivateKeyEntryDecoder | |
| public static RandomFactory | Returns: IfisBouncyCastleRegistered() then a BouncyCastleRandomFactory instance, otherwise a
JceRandomFactory one
|
| public static SecurityProviderRegistrar | |
| public static Set | |
| public static Signature | |
| public static boolean | Returns: true if the provider is marked as disabled a-prioriThe provider's name - never name)null/empty
|
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if Oakely Diffie-Hellman Group Exchange is supported for the specified key sizeThe expected key size keySize)
|
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if FIPS mode is enabled, false otherwise.Tells whether FIPS mode is enabled, either through the system property |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static Iterable | loadKeyPairIdentities(SessionContext
The session, NamedResource SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool).An identifier of the key being loaded - used as argument to the
resourceKey, InputStream FilePasswordProvider#getPassword invocationThe inputStream, FilePasswordProvider InputStream for the private keyA provider)FilePasswordProvider - may be null if the loaded key is
guaranteed not to be encrypted
|
| public static <B extends Buffer> B | |
| public static <B extends Buffer> B | |
| public static <B extends Buffer> B | |
| public static PublicKey | |
| private static void | |
| public static SecurityProviderRegistrar | Returns: The registered instance - may be different than required if already registered. Returnsnull if not already registered and not enabled or not supported registrar.The registrar instance to register registrar)
|
| private static int | |
| public static <T> SecurityEntityFactory | resolveSecurityEntityFactory(Class<T> entityType, String algorithm, Predicate<? super SecurityProviderRegistrar> entitySelector)
|
| public static void | setAPrioriDisabledProvider(String
The provider's name - never name, boolean null/emptytrue whether to disable it a-prioriMarks a provider's registrar as "a-priori" programatically so that when its
Note has no effect if the provider has already been registered. |
| public static void | |
| public static void | |
| public static void | setKeyPairResourceParser(KeyPairResourceParser
The system-wide parser)KeyPairResourceParser to use. If set to null, then the default
parser will be re-constructed on next call to getKeyPairResourceParser()
|
| public static void | setMaxDHGroupExchangeKeySize(int
The reported key size - if zero, then it will be auto-detected, if negative then DH group exchange
will be disabled keySize)Set programmatically the reported value for |
| public static void | setMinDHGroupExchangeKeySize(int
The reported key size - if zero, then it will be auto-detected, if negative then DH group exchange
will be disabled keySize)Set programmatically the reported value for |
| APRIORI_DISABLED_PROVIDERS | back to summary |
|---|---|
| private static final Set<String> APRIORI_DISABLED_PROVIDERS | |
| BOUNCY_CASTLE | back to summary |
|---|---|
| public static final String BOUNCY_CASTLE Bouncy Castle | |
| CURVE_ED25519_SHA512 | back to summary |
|---|---|
| public static final String CURVE_ED25519_SHA512 | |
| DEFAULT_PROVIDER_HOLDER | back to summary |
|---|---|
| private static final AtomicReference<SecurityProviderChoice> DEFAULT_PROVIDER_HOLDER | |
| DEFAULT_SECURITY_PROVIDER_REGISTRARS | back to summary |
|---|---|
| public static final List<String> DEFAULT_SECURITY_PROVIDER_REGISTRARS | |
| ECC_SUPPORTED_PROP | back to summary |
|---|---|
| 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 | |
| ED25519 | back to summary |
|---|---|
| public static final String ED25519 | |
| EDDSA | back to summary |
|---|---|
| public static final String EDDSA EDDSA support - should match | |
| EDDSA_SUPPORTED_PROP | back to summary |
|---|---|
| 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
| |
| FIPS_ENABLED | back to summary |
|---|---|
| public static final String FIPS_ENABLED A boolean system property that can be set to Note if this system property is not | |
| FIPS_MODE | back to summary |
|---|---|
| private static final AtomicReference<Boolean> FIPS_MODE | |
| hasEcc | back to summary |
|---|---|
| private static Boolean hasEcc | |
| KEYPAIRS_PARSER_HODLER | back to summary |
|---|---|
| private static final AtomicReference<KeyPairResourceParser> KEYPAIRS_PARSER_HODLER | |
| MAX_DHG_KEY_SIZE_HOLDER | back to summary |
|---|---|
| private static final AtomicInteger MAX_DHG_KEY_SIZE_HOLDER | |
| MAX_DHGEX_KEY_SIZE | back to summary |
|---|---|
| public static final int MAX_DHGEX_KEY_SIZE | |
| MAX_DHGEX_KEY_SIZE_PROP | back to summary |
|---|---|
| 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 | |
| MIN_DHG_KEY_SIZE_HOLDER | back to summary |
|---|---|
| private static final AtomicInteger MIN_DHG_KEY_SIZE_HOLDER | |
| MIN_DHGEX_KEY_SIZE | back to summary |
|---|---|
| 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 | |
| MIN_DHGEX_KEY_SIZE_PROP | back to summary |
|---|---|
| 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 | |
| PREFERRED_DHGEX_KEY_SIZE | back to summary |
|---|---|
| public static final int PREFERRED_DHGEX_KEY_SIZE | |
| PROP_DEFAULT_SECURITY_PROVIDER | back to summary |
|---|---|
| public static final String PROP_DEFAULT_SECURITY_PROVIDER | |
| REGISTER_BOUNCY_CASTLE_PROP | back to summary |
|---|---|
| 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 | |
| REGISTERED_PROVIDERS | back to summary |
|---|---|
| private static final Map<String, SecurityProviderRegistrar> REGISTERED_PROVIDERS | |
| REGISTRATION_STATE_HOLDER | back to summary |
|---|---|
| private static final AtomicBoolean REGISTRATION_STATE_HOLDER | |
| SECURITY_ENTITY_FACTORIES | back to summary |
|---|---|
| private static final Map<Class<?>, Map<String, SecurityEntityFactory<?>>> SECURITY_ENTITY_FACTORIES | |
| SECURITY_PROVIDER_REGISTRARS | back to summary |
|---|---|
| public static final String SECURITY_PROVIDER_REGISTRARS Comma separated list of fully qualified | |
| SecurityUtils | back to summary |
|---|---|
| private SecurityUtils() | |
| compareEDDSAPPublicKeys | back to summary |
|---|---|
| public static boolean compareEDDSAPPublicKeys(PublicKey k1, PublicKey k2) | |
| compareEDDSAPrivateKeys | back to summary |
|---|---|
| public static boolean compareEDDSAPrivateKeys(PrivateKey k1, PrivateKey k2) | |
| createGeneratorHostKeyProvider | back to summary |
|---|---|
| public static AbstractGeneratorHostKeyProvider createGeneratorHostKeyProvider(Path path) | |
| createSecurityEntityFactory | back to summary |
|---|---|
| public static <T> SecurityEntityFactory | |
| extractEDDSAKeyPair | back to summary |
|---|---|
| public static KeyPair extractEDDSAKeyPair(Buffer buffer, String keyType) throws GeneralSecurityException | |
| generateEDDSAPrivateKey | back to summary |
|---|---|
| public static PrivateKey generateEDDSAPrivateKey(String keyType, byte[] seed) throws GeneralSecurityException, IOException | |
| generateEDDSAPublicKey | back to summary |
|---|---|
| public static PublicKey generateEDDSAPublicKey(String keyType, byte[] seed) throws GeneralSecurityException | |
| getAPrioriDisabledProviders | back to summary |
|---|---|
| public static Set | |
| getBouncycastleEncryptedPrivateKeyInfoDecryptor | back to summary |
|---|---|
| public static Decryptor getBouncycastleEncryptedPrivateKeyInfoDecryptor() | |
| getBouncycastleKeyPairResourceParser | back to summary |
|---|---|
| public static KeyPairResourceParser getBouncycastleKeyPairResourceParser() | |
| getCertificateFactory | back to summary |
|---|---|
| public static CertificateFactory getCertificateFactory(String type) throws GeneralSecurityException | |
| getCipher | back to summary |
|---|---|
| public static Cipher getCipher(String transformation) throws GeneralSecurityException | |
| getDefaultProviderChoice | back to summary |
|---|---|
| public static SecurityProviderChoice getDefaultProviderChoice() | |
| getEDDSAKeySize | back to summary |
|---|---|
| public static int getEDDSAKeySize(Key key) | |
| getEDDSAPrivateKeyType | back to summary |
|---|---|
| public static Class | |
| getEDDSAPublicKeyEntryDecoder | back to summary |
|---|---|
| public static PublicKeyEntryDecoder | |
| getEDDSAPublicKeyType | back to summary |
|---|---|
| public static Class | |
| getEDDSASigner | back to summary |
|---|---|
| public static Signature getEDDSASigner() | |
| getEdDSASupport | back to summary |
|---|---|
| public static Optional | |
| getKeyAgreement | back to summary |
|---|---|
| public static KeyAgreement getKeyAgreement(String algorithm) throws GeneralSecurityException | |
| getKeyFactory | back to summary |
|---|---|
| public static KeyFactory getKeyFactory(String algorithm) throws GeneralSecurityException | |
| getKeyPairGenerator | back to summary |
|---|---|
| public static KeyPairGenerator getKeyPairGenerator(String algorithm) throws GeneralSecurityException | |
| getKeyPairResourceParser | back to summary |
|---|---|
| public static KeyPairResourceParser getKeyPairResourceParser() | |
| getMac | back to summary |
|---|---|
| public static Mac getMac(String algorithm) throws GeneralSecurityException | |
| getMaxDHGroupExchangeKeySize | back to summary |
|---|---|
public static int getMaxDHGroupExchangeKeySize()
| |
| getMessageDigest | back to summary |
|---|---|
| public static MessageDigest getMessageDigest(String algorithm) throws GeneralSecurityException | |
| getMinDHGroupExchangeKeySize | back to summary |
|---|---|
public static int getMinDHGroupExchangeKeySize()
| |
| getOpenSSHEDDSAPrivateKeyEntryDecoder | back to summary |
|---|---|
| public static PrivateKeyEntryDecoder | |
| getRandomFactory | back to summary |
|---|---|
public static RandomFactory getRandomFactory()
| |
| getRegisteredProvider | back to summary |
|---|---|
| public static SecurityProviderRegistrar getRegisteredProvider(String provider) | |
| getRegisteredProviders | back to summary |
|---|---|
| public static Set | |
| getSignature | back to summary |
|---|---|
| public static Signature getSignature(String algorithm) throws GeneralSecurityException | |
| isAPrioriDisabledProvider | back to summary |
|---|---|
public static boolean isAPrioriDisabledProvider(String name)
| |
| isBouncyCastleRegistered | back to summary |
|---|---|
| public static boolean isBouncyCastleRegistered() | |
| isDHGroupExchangeSupported | back to summary |
|---|---|
public static boolean isDHGroupExchangeSupported()
| |
| isDHGroupExchangeSupported | back to summary |
|---|---|
| public static boolean isDHGroupExchangeSupported(int maxKeySize) | |
| isDHOakelyGroupSupported | back to summary |
|---|---|
public static boolean isDHOakelyGroupSupported(int keySize)
| |
| isECCSupported | back to summary |
|---|---|
public static boolean isECCSupported()
| |
| isEDDSACurveSupported | back to summary |
|---|---|
public static boolean isEDDSACurveSupported()
| |
| isFipsMode | back to summary |
|---|---|
| public static boolean isFipsMode() Tells whether FIPS mode is enabled, either through the system property
| |
| isNetI2pCryptoEdDSARegistered | back to summary |
|---|---|
| public static boolean isNetI2pCryptoEdDSARegistered() | |
| isProviderRegistered | back to summary |
|---|---|
| public static boolean isProviderRegistered(String provider) | |
| isRegistrationCompleted | back to summary |
|---|---|
| public static boolean isRegistrationCompleted() | |
| loadKeyPairIdentities | back to summary |
|---|---|
public static Iterable
| |
| putEDDSAKeyPair | back to summary |
|---|---|
| public static <B extends Buffer> B putEDDSAKeyPair(B buffer, KeyPair kp) | |
| putEDDSAKeyPair | back to summary |
|---|---|
| public static <B extends Buffer> B putEDDSAKeyPair(B buffer, PublicKey pubKey, PrivateKey prvKey) | |
| putRawEDDSAPublicKey | back to summary |
|---|---|
| public static <B extends Buffer> B putRawEDDSAPublicKey(B buffer, PublicKey key) | |
| recoverEDDSAPublicKey | back to summary |
|---|---|
| public static PublicKey recoverEDDSAPublicKey(PrivateKey key) throws GeneralSecurityException | |
| register | back to summary |
|---|---|
| private static void register() | |
| registerSecurityProvider | back to summary |
|---|---|
public static SecurityProviderRegistrar registerSecurityProvider(SecurityProviderRegistrar registrar)
| |
| resolveDHGEXKeySizeValue | back to summary |
|---|---|
| private static int resolveDHGEXKeySizeValue(AtomicInteger holder, String propName, int maxKeySize) | |
| resolveSecurityEntityFactory | back to summary |
|---|---|
public static <T> SecurityEntityFactory
| |
| setAPrioriDisabledProvider | back to summary |
|---|---|
| public static void setAPrioriDisabledProvider(String name, boolean disabled) Marks a provider's registrar as "a-priori" programatically so that when its
Note has no effect if the provider has already been registered.
| |
| setDefaultProviderChoice | back to summary |
|---|---|
| public static void setDefaultProviderChoice(SecurityProviderChoice choice) | |
| setFipsMode | back to summary |
|---|---|
| public static void setFipsMode() Unconditionally set FIPS mode, overriding the
| |
| setKeyPairResourceParser | back to summary |
|---|---|
public static void setKeyPairResourceParser(KeyPairResourceParser parser)
| |
| setMaxDHGroupExchangeKeySize | back to summary |
|---|---|
| public static void setMaxDHGroupExchangeKeySize(int keySize) Set programmatically the reported value for
| |
| setMinDHGroupExchangeKeySize | back to summary |
|---|---|
| public static void setMinDHGroupExchangeKeySize(int keySize) Set programmatically the reported value for
| |