Skip to content

Commit 70a9dd1

Browse files
author
Dmitry Radchuk
committed
Add missing javadocs for sharpen configs
1 parent c6c6e18 commit 70a9dd1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

commons/src/sharpenconfig/java/com/itextpdf/commons/BCWrappersConfigurationUtils.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@ This file is part of the iText (R) project.
2525
import sharpen.config.MappingConfigurator;
2626
import sharpen.config.MemberKind;
2727

28+
/**
29+
* Utility class for applying BC wrappers mappings.
30+
*/
2831
public 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");

commons/src/sharpenconfig/java/com/itextpdf/commons/UseBCWrappersModuleOption.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)