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 IBouncyCastleFactoryprivate static final Stringprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcreateFactory(Supplier<IBouncyCastleFactory> factoryCreator) static IBouncyCastleFactoryReturnsIBouncyCastleFactoryinstance for bouncy-castle classes creation.private static voidstatic voidsetFactory(IBouncyCastleFactory newFactory) SetsIBouncyCastleFactoryinstance, which will be used for bouncy-castle classes creation.private static voidtryCreateFactory(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
SetsIBouncyCastleFactoryinstance, which will be used for bouncy-castle classes creation.- Parameters:
newFactory-IBouncyCastleFactoryinstance to be set.
-
getFactory
ReturnsIBouncyCastleFactoryinstance for bouncy-castle classes creation.- Returns:
IBouncyCastleFactoryimplementation.
-
tryCreateFactory
-
createFactory
-
populateFactoriesMap
private static void populateFactoriesMap()
-