Class DSSSecurityProvider
java.lang.Object
eu.europa.esig.dss.spi.DSSSecurityProvider
The default security provider.
In order to initialize the providers within the system, please call the #initSystemProviders method.
NOTE: once #initSystemProviders method called, all the primary and alternative security providers
will be added within the system's Security providers list.
They won't be removed automatically, if the security providers configuration is changed within the class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]Gets an array of alternative security provider namesstatic Provider[]Gets an array of alternative security providersstatic ProviderGets the providerstatic StringGets the security provider namestatic voidThis method adds the configured within thejava.security.Securityproviders' list.static voidsetAlternativeSecurityProviders(String... alternativeSecurityProviderNames) Sets alternative security providers by their names.static voidsetAlternativeSecurityProviders(Provider... alternativeSecurityProviders) Sets alternative security providers.static voidsetSecurityProvider(String providerName) Sets the security provider by the given Provider namestatic voidsetSecurityProvider(Provider provider) Sets the security provider
-
Method Details
-
getSecurityProvider
-
getSecurityProviderName
-
setSecurityProvider
-
setSecurityProvider
Sets the security provider by the given Provider name- Parameters:
providerName-String- Throws:
SecurityException- if unable to instantiate the Provider by the given name
-
getAlternativeSecurityProviders
-
getAlternativeSecurityProviderNames
-
setAlternativeSecurityProviders
Sets alternative security providers. In case the primary security providers fails on operation, DSS will load the alternative security providers in provided order, until the first provider succeeding the operation- Parameters:
alternativeSecurityProviders- array ofProviders
-
setAlternativeSecurityProviders
public static void setAlternativeSecurityProviders(String... alternativeSecurityProviderNames) throws SecurityException Sets alternative security providers by their names. In case the primary security providers fails on operation, DSS will load the alternative security providers in provided order, until the first provider succeeding the operation- Parameters:
alternativeSecurityProviderNames- array ofStrings- Throws:
SecurityException- if unable to instantiate the Provider by the given name
-
initSystemProviders
public static void initSystemProviders()This method adds the configured within thejava.security.Securityproviders' list. This method shall be called before the use of the security providers is required by the code. NOTE: once called, all the primary and alternative security providers will be added within the system's Security providers list. They won't be removed automatically, if the security providers configuration is changed within the class.
-