Class BouncyCastleSecurityProviderRegistrar
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar
org.apache.sshd.common.util.security.bouncycastle.BouncyCastleSecurityProviderRegistrar
- All Implemented Interfaces:
NamedResource, OptionalFeature, PropertyResolver, PublicKeyFactory, SecurityProviderChoice, SecurityProviderRegistrar
- Author:
- Apache MINA SSHD Project
-
Field Summary
FieldsFields inherited from class AbstractSecurityProviderRegistrar
props, providerHolder, supportedEntitiesFields inherited from class AbstractLoggingBean
logFields inherited from interface NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTORFields inherited from interface OptionalFeature
FALSE, TRUEFields inherited from interface PropertyResolver
EMPTYFields inherited from interface SecurityProviderChoice
EMPTYFields inherited from interface SecurityProviderRegistrar
ALL_OPTIONS_VALUE, ALL_OPTIONS_WILDCARD, CONFIG_PROP_BASE, ENABLED_PROPERTY, NAMED_PROVIDER_PROPERTY, NO_OPTIONS_VALUE, SECURITY_ENTITIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProvidercreateProviderInstance(String providerClassName) getDefaultSecurityEntitySupportValue(Class<?> entityType) Retrieves the underlyingProvider's name.getPublicKey(PrivateKey key) Given aPrivateKeycomputes the correspondingPublicKey.booleanbooleanisSecurityEntitySupported(Class<?> entityType, String name) booleanMethods inherited from class AbstractSecurityProviderRegistrar
getName, getOrCreateProvider, getProperties, toStringMethods inherited from class AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PropertyResolver
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getString, getStringProperty, isEmptyMethods inherited from interface SecurityProviderRegistrar
getBasePropertyName, getConfigurationPropertyName, getParentPropertyResolver, isCertificateFactorySupported, isCipherSupported, isEnabled, isKEMSupported, isKeyAgreementSupported, isKeyFactorySupported, isKeyPairGeneratorSupported, isMacSupported, isMessageDigestSupported, isSignatureSupported
-
Field Details
-
PROVIDER_CLASS
- See Also:
-
FIPS_PROVIDER_CLASS
- See Also:
-
-
Constructor Details
-
BouncyCastleSecurityProviderRegistrar
public BouncyCastleSecurityProviderRegistrar()
-
-
Method Details
-
getProviderName
Description copied from interface:SecurityProviderChoiceRetrieves the underlyingProvider's name.- Returns:
- the
Provider's name
-
isNamedProviderUsed
public boolean isNamedProviderUsed()- Returns:
trueif to use the provider's name rather than itsProviderinstance - default=true- See Also:
-
getSecurityProvider
- Returns:
- The security
Providerto use in caseSecurityProviderChoice.isNamedProviderUsed()isfalse. Can benullifSecurityProviderChoice.isNamedProviderUsed()istrue, but not recommended.
-
getDefaultSecurityEntitySupportValue
-
isSecurityEntitySupported
- Specified by:
isSecurityEntitySupportedin interfaceSecurityProviderRegistrar- Overrides:
isSecurityEntitySupportedin classAbstractSecurityProviderRegistrar
-
getFactory
-
isSupported
public boolean isSupported() -
createProviderInstance
protected Provider createProviderInstance(String providerClassName) throws ReflectiveOperationException - Overrides:
createProviderInstancein classAbstractSecurityProviderRegistrar- Throws:
ReflectiveOperationException
-
getPublicKey
Description copied from interface:PublicKeyFactoryGiven aPrivateKeycomputes the correspondingPublicKey.- Parameters:
key-PrivateKeyto get thePublicKeyfor- Returns:
- the
PublicKey, ornullif no public key could be computed
-