Class BouncyCastleFactoryCreator
java.lang.Object
com.itextpdf.bouncycastleconnector.BouncyCastleFactoryCreator
This class provides the ability to create
IBouncyCastleFactory
instance.
User chooses which bouncy-castle will be created by specifying dependency.
Bouncy-castle dependency must be added in order to use this class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<String, Supplier<IBouncyCastleFactory>> private static IBouncyCastleFactory
private static final String
private static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
createFactory
(Supplier<IBouncyCastleFactory> factoryCreator) static IBouncyCastleFactory
ReturnsIBouncyCastleFactory
instance for bouncy-castle classes creation.private static void
static void
setFactory
(IBouncyCastleFactory newFactory) SetsIBouncyCastleFactory
instance, which will be used for bouncy-castle classes creation.private static void
tryCreateFactory
(Supplier<IBouncyCastleFactory> factoryCreator)
-
Field Details
-
factory
-
FACTORIES
-
FACTORY_ENVIRONMENT_VARIABLE_NAME
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
BouncyCastleFactoryCreator
private BouncyCastleFactoryCreator()
-
-
Method Details
-
setFactory
SetsIBouncyCastleFactory
instance, which will be used for bouncy-castle classes creation.- Parameters:
newFactory
-IBouncyCastleFactory
instance to be set.
-
getFactory
ReturnsIBouncyCastleFactory
instance for bouncy-castle classes creation.- Returns:
IBouncyCastleFactory
implementation.
-
tryCreateFactory
-
createFactory
-
populateFactoriesMap
private static void populateFactoriesMap()
-