public abstract class AbstractSecurityProviderRegistrar extends AbstractLoggingBean implements SecurityProviderRegistrar
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name |
protected java.util.Map<java.lang.String,java.lang.Object> |
props |
protected java.util.concurrent.atomic.AtomicReference<java.security.Provider> |
providerHolder |
protected java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.String,java.lang.Boolean>> |
supportedEntities |
logALL_OPTIONS_VALUE, ALL_OPTIONS_WILDCARD, CONFIG_PROP_BASE, ENABLED_PROPERTY, NAMED_PROVIDER_PROPERTY, NO_OPTIONS_VALUE, SECURITY_ENTITIESEMPTYBY_NAME_COMPARATOR, NAME_EXTRACTORFALSE, TRUEEMPTY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSecurityProviderRegistrar(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected java.security.Provider |
createProviderInstance(java.lang.String providerClassName) |
java.lang.String |
getName() |
protected java.security.Provider |
getOrCreateProvider(java.lang.String providerClassName)
Attempts to see if a provider with this name already registered.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
A map of properties that can be used to configure the SSH server or client.
|
boolean |
isSecurityEntitySupported(java.lang.Class<?> entityType,
java.lang.String name) |
java.lang.String |
toString() |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindSecurityProviderRegistrarBySecurityEntity, getBasePropertyName, getConfigurationPropertyName, getDefaultSecurityEntitySupportValue, getEffectiveSecurityEntityName, getParentPropertyResolver, isAllOptionsValue, isCertificateFactorySupported, isCipherSupported, isEnabled, isKeyAgreementSupported, isKeyFactorySupported, isKeyPairGeneratorSupported, isMacSupported, isMessageDigestSupported, isNamedProviderUsed, isSecurityEntitySupported, isSecurityEntitySupported, isSignatureSupported, registerSecurityProvidercreateProviderInstance, getSecurityProvider, toSecurityProviderChoice, toSecurityProviderChoicefindByName, getNameList, getNames, ofName, removeByNameall, any, isSupported, ofgetBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getString, getStringPropertyprotected final java.util.Map<java.lang.String,java.lang.Object> props
protected final java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.String,java.lang.Boolean>> supportedEntities
protected final java.util.concurrent.atomic.AtomicReference<java.security.Provider> providerHolder
private final java.lang.String name
protected AbstractSecurityProviderRegistrar(java.lang.String name)
public final java.lang.String getName()
getName in interface NamedResourcepublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
PropertyResolverA map of properties that can be used to configure the SSH server or client. This map will never be changed by either the server or client and is not supposed to be changed at runtime (changes are not bound to have any effect on a running client or server), though it may affect the creation of sessions later as these values are usually not cached.
Note: the type of the mapped property should match the expected configuration value type -
Long, Integer, Boolean,
String, etc.... If it doesn't, the toString() result of the mapped value is used to convert it to the
required type. E.g., if the mapped value is the string "1234" and the expected value is a
long then it will be parsed into one. Also, if the mapped value is an Integer but a long
is expected, then it will be converted into one.
getProperties in interface PropertyResolvergetProperties in interface SecurityProviderRegistrarMap containing configuration values, never null. Note: may be
immutable.public boolean isSecurityEntitySupported(java.lang.Class<?> entityType,
java.lang.String name)
isSecurityEntitySupported in interface SecurityProviderRegistrarprotected java.security.Provider getOrCreateProvider(java.lang.String providerClassName)
throws java.lang.ReflectiveOperationException
providerClassName - The fully-qualified class name to instantiate if a provider not already
registeredProvider instance - Note: the result is
cached - i.e., successful resolution result will not cause the code
to re-resolve the providerjava.lang.ReflectiveOperationException - If failed to instantiate the providerjava.lang.UnsupportedOperationException - If registrar not supportedOptionalFeature.isSupported(),
Security.getProvider(String),
createProviderInstance(String)protected java.security.Provider createProviderInstance(java.lang.String providerClassName)
throws java.lang.ReflectiveOperationException
java.lang.ReflectiveOperationExceptionpublic java.lang.String toString()
toString in class java.lang.Object