The Utility Module allows you to do math function such as generating a random integer, string function such as transform a string to uppercase and lowercase, get the length of a string, generate a random UUID, check a string against a regular expression.
| Package | Functions |
|---|---|
| Date | Get current date |
| Math | Generate random integer |
| String | Transform string to lowercase Transform string to uppercase Get length of a string Check a string with regular expression Generate a random UUID |
| Signature | Generate HMAC signature for the payload Verify the payload using a signature |
To see the available Utility Module, navigate to the connector store and search for "Utility".
| Connector version | Supported product versions |
|---|---|
| 2.0.0 | MI 4.4.0 |
| 1.0.2 | MI 4.1.0, MI 4.0.0 |
For older versions, see the details in the connector store.
Follow the steps given below to build the Utility module from the source code.
- Get a clone or download the source from Github.
- Run the following Maven command from the
mediation-utility-moduledirectory:mvn clean install. - The ZIP file of the connector is created in the
mediation-utility-module/targetdirectory.
As an open source project, WSO2 extensions welcome contributions from the community.
To contribute to the code for this connector, please create a pull request in the following repository.
Check the issue tracker for open issues that interest you. We look forward to receiving your contributions.