Class EdDSASecurityProviderRegistrar
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar
-
- org.apache.sshd.common.util.security.eddsa.EdDSASecurityProviderRegistrar
-
- All Implemented Interfaces:
NamedResource
,OptionalFeature
,PropertyResolver
,SecurityProviderChoice
,SecurityProviderRegistrar
public class EdDSASecurityProviderRegistrar extends AbstractSecurityProviderRegistrar
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROVIDER_CLASS
private java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>
supportHolder
-
Fields inherited from class org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar
props, providerHolder, supportedEntities
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
Fields inherited from interface org.apache.sshd.common.OptionalFeature
FALSE, TRUE
-
Fields inherited from interface org.apache.sshd.common.PropertyResolver
EMPTY
-
Fields inherited from interface org.apache.sshd.common.util.security.SecurityProviderChoice
EMPTY
-
Fields inherited from interface org.apache.sshd.common.util.security.SecurityProviderRegistrar
ALL_OPTIONS_VALUE, ALL_OPTIONS_WILDCARD, CONFIG_PROP_BASE, ENABLED_PROPERTY, NAMED_PROVIDER_PROPERTY, NO_OPTIONS_VALUE, SECURITY_ENTITIES
-
-
Constructor Summary
Constructors Constructor Description EdDSASecurityProviderRegistrar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.Provider
getSecurityProvider()
boolean
isEnabled()
boolean
isSecurityEntitySupported(java.lang.Class<?> entityType, java.lang.String name)
boolean
isSupported()
-
Methods inherited from class org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar
createProviderInstance, getName, getOrCreateProvider, getProperties, toString
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.PropertyResolver
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getString, getStringProperty
-
Methods inherited from interface org.apache.sshd.common.util.security.SecurityProviderRegistrar
getBasePropertyName, getConfigurationPropertyName, getDefaultSecurityEntitySupportValue, getParentPropertyResolver, isCertificateFactorySupported, isCipherSupported, isKeyAgreementSupported, isKeyFactorySupported, isKeyPairGeneratorSupported, isMacSupported, isMessageDigestSupported, isNamedProviderUsed, isSignatureSupported
-
-
-
-
Field Detail
-
PROVIDER_CLASS
public static final java.lang.String PROVIDER_CLASS
- See Also:
- Constant Field Values
-
supportHolder
private final java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> supportHolder
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Returns:
true
if the provider is enabled regardless of whether it is supported - default=true
. Note: checks if the provider has been programmatically disabled viaSecurityUtils.setAPrioriDisabledProvider(String, boolean)
- See Also:
SecurityProviderRegistrar.ENABLED_PROPERTY
-
getSecurityProvider
public java.security.Provider getSecurityProvider()
- Returns:
- The security
Provider
to use in caseSecurityProviderChoice.isNamedProviderUsed()
isfalse
. Can benull
ifSecurityProviderChoice.isNamedProviderUsed()
istrue
, but not recommended.
-
isSecurityEntitySupported
public boolean isSecurityEntitySupported(java.lang.Class<?> entityType, java.lang.String name)
- Specified by:
isSecurityEntitySupported
in interfaceSecurityProviderRegistrar
- Overrides:
isSecurityEntitySupported
in classAbstractSecurityProviderRegistrar
-
isSupported
public boolean isSupported()
-
-