File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
commons/src/sharpenconfig/java/com/itextpdf/commons Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,17 @@ This file is part of the iText (R) project.
2525import sharpen .config .MappingConfigurator ;
2626import sharpen .config .MemberKind ;
2727
28+ /**
29+ * Utility class for applying BC wrappers mappings.
30+ */
2831public class BCWrappersConfigurationUtils {
2932 private BCWrappersConfigurationUtils () {}
3033
34+ /**
35+ * Applies mappings with custom wrappers for modules which use both bouncycastle and bouncycastle-fips.
36+ *
37+ * @param configurator {@link MappingConfigurator} instance in which mappings will be added
38+ */
3139 public static void applyMappingConfiguration (MappingConfigurator configurator ) {
3240 configurator .mapMethod ("java.security.cert.X509Certificate.getSerialNumber" , "GetSerialNumber" );
3341 configurator .mapMethod ("java.security.cert.X509Certificate.getThisUpdate" , "GetThisUpdate" );
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ private UseBCWrappersModuleOption() {
3939 "Enables BC wrappers configuration in commons" );
4040 }
4141
42+ /**
43+ * Gets the BC wrappers option instance.
44+ *
45+ * @return The {@code UseBCWrappersModuleOption} option instance
46+ */
4247 public static UseBCWrappersModuleOption getInstance () {
4348 return INSTANCE ;
4449 }
You can’t perform that action at this time.
0 commit comments