public class BouncyCastleSecurityProviderRegistrar extends AbstractSecurityProviderRegistrar
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.atomic.AtomicReference<java.lang.String> |
allSupportHolder |
static java.lang.String |
PROVIDER_CLASS |
private java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> |
supportHolder |
props, providerHolder, supportedEntitieslogALL_OPTIONS_VALUE, ALL_OPTIONS_WILDCARD, CONFIG_PROP_BASE, ENABLED_PROPERTY, NAMED_PROVIDER_PROPERTY, NO_OPTIONS_VALUE, SECURITY_ENTITIESEMPTYBY_NAME_COMPARATOR, NAME_EXTRACTORFALSE, TRUEEMPTY| Constructor and Description |
|---|
BouncyCastleSecurityProviderRegistrar() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultSecurityEntitySupportValue(java.lang.Class<?> entityType) |
java.security.Provider |
getSecurityProvider() |
boolean |
isEnabled() |
boolean |
isSecurityEntitySupported(java.lang.Class<?> entityType,
java.lang.String name) |
boolean |
isSupported() |
createProviderInstance, getName, getOrCreateProvider, getProperties, toStringgetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindSecurityProviderRegistrarBySecurityEntity, getBasePropertyName, getConfigurationPropertyName, getEffectiveSecurityEntityName, getParentPropertyResolver, isAllOptionsValue, isCertificateFactorySupported, isCipherSupported, isKeyAgreementSupported, isKeyFactorySupported, isKeyPairGeneratorSupported, isMacSupported, isMessageDigestSupported, isNamedProviderUsed, isSecurityEntitySupported, isSecurityEntitySupported, isSignatureSupported, registerSecurityProvidercreateProviderInstance, toSecurityProviderChoice, toSecurityProviderChoicefindByName, getNameList, getNames, ofName, removeByNameall, any, ofgetBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getString, getStringPropertypublic static final java.lang.String PROVIDER_CLASS
private final java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> supportHolder
private final java.util.concurrent.atomic.AtomicReference<java.lang.String> allSupportHolder
public BouncyCastleSecurityProviderRegistrar()
public boolean isEnabled()
true if the provider is enabled regardless of whether it is supported - default=true.
Note: checks if the provider has been programmatically disabled via
SecurityUtils.setAPrioriDisabledProvider(String, boolean)SecurityProviderRegistrar.ENABLED_PROPERTYpublic java.security.Provider getSecurityProvider()
Provider to use in case SecurityProviderChoice.isNamedProviderUsed() is false. Can be
null if SecurityProviderChoice.isNamedProviderUsed() is true, but not recommended.public java.lang.String getDefaultSecurityEntitySupportValue(java.lang.Class<?> entityType)
entityType - The requested entity type - its simple name serves to build the configuration property name.SecurityProviderRegistrar.isSecurityEntitySupported(Class, String)public boolean isSecurityEntitySupported(java.lang.Class<?> entityType,
java.lang.String name)
isSecurityEntitySupported in interface SecurityProviderRegistrarisSecurityEntitySupported in class AbstractSecurityProviderRegistrarpublic boolean isSupported()