Class SecurityProviderProxy
java.lang.Object
com.itextpdf.commons.bouncycastle.SecurityProviderProxy
This class is used to register a security provider at runtime if it is not already registered. But if the provider is already registered, it will return the existing provider. This is useful when building with graalvm, as the provider will be registered at compile time. And using a provider that registered at runtime will cause errors.
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityProviderProxy
(Provider provider) Constructor that registers the provider if it is not already registered. -
Method Summary
Modifier and TypeMethodDescriptionGets the provider that was registered.Gets the name of the provider that was registered.
-
Constructor Details
-
SecurityProviderProxy
Constructor that registers the provider if it is not already registered.- Parameters:
-
provider
- The provider to register or get if it was registered
-
-
Method Details
-
getProvider
Gets the provider that was registered.- Returns:
- The provider that was registered
-
getProviderName
Gets the name of the provider that was registered.- Returns:
- The name of the provider that was registered
-