Class AbstractFactoryBuilder<F>
java.lang.Object
eu.europa.esig.dss.xml.common.AbstractConfigurator<F>
eu.europa.esig.dss.xml.common.AbstractFactoryBuilder<F>
- Type Parameters:
F- class of the object to be built
- Direct Known Subclasses:
DocumentBuilderFactoryBuilder, SchemaFactoryBuilder, TransformerFactoryBuilder
Abstract class to build a secure builder instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FThis method instantiates the corresponding factory.Methods inherited from class AbstractConfigurator
disableFeature, enableFeature, removeAttribute, setAttribute, setSecurityAttribute, setSecurityAttributes, setSecurityExceptionAlert, setSecurityFeature, setSecurityFeaturesModifier and TypeMethodDescriptiondisableFeature(String feature) Disables a custom featureenableFeature(String feature) Enables a custom featureremoveAttribute(String attribute) Removes the attribute from a list of attributes to setsetAttribute(String attribute, Object value) Sets a custom attribute.protected abstract voidsetSecurityAttribute(F factory, String attribute, Object value) Sets the attribute to the factoryprotected voidsetSecurityAttributes(F factory) Sets all attributes to the factoryvoidsetSecurityExceptionAlert(eu.europa.esig.dss.alert.StatusAlert securityExceptionAlert) This method allows to configure a custom alert on security exception in the builderprotected abstract voidsetSecurityFeature(F factory, String feature, Boolean value) Sets the feature to the factoryprotected voidsetSecurityFeatures(F factory) Sets all features to the factory
-
Constructor Details
-
AbstractFactoryBuilder
protected AbstractFactoryBuilder()Default constructor
-
-
Method Details
-
instantiateFactory
This method instantiates the corresponding factory. NOTE: in order to change the default behavior, the related class and the current method should be overridden- Returns:
- factory
-