diff --git a/changelog.md b/changelog.md index 558c38e..c75c193 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,9 @@ This file contains all the notable changes done to the Ballerina SOAP package th ## [Unreleased] +### Changed +- [Make some of the Java classes proper utility classes](https://github.com/ballerina-platform/ballerina-standard-library/issues/5075) + ## [0.8.0] - 2023-10-16 ### Added diff --git a/native/src/main/java/org/wssec/WsSecurity.java b/native/src/main/java/org/wssec/WsSecurity.java index 5e74312..ebf30b7 100644 --- a/native/src/main/java/org/wssec/WsSecurity.java +++ b/native/src/main/java/org/wssec/WsSecurity.java @@ -56,7 +56,9 @@ import static org.wssec.WsSecurityUtils.convertDocumentToString; import static org.wssec.WsSecurityUtils.setUTChildElements; -public class WsSecurity { +public final class WsSecurity { + + private WsSecurity() {} public static Object applyUsernameTokenPolicy(BObject wsSecHeader, BString username, BString password, BString passwordType) { diff --git a/native/src/main/java/org/wssec/WsSecurityUtils.java b/native/src/main/java/org/wssec/WsSecurityUtils.java index 38c45e4..e7dcbf4 100644 --- a/native/src/main/java/org/wssec/WsSecurityUtils.java +++ b/native/src/main/java/org/wssec/WsSecurityUtils.java @@ -59,7 +59,9 @@ import static org.wssec.Constants.XML_DS_NS; import static org.wssec.Constants.XML_ENC_NS; -public class WsSecurityUtils { +public final class WsSecurityUtils { + + private WsSecurityUtils() {} public static void buildSignature(RequestData reqData, WSSecSignature sign) throws Exception { List parts = new ArrayList<>(1);