Class ModuleUtils
java.lang.Object
org.jpos.q2.install.ModuleUtils
Helpers that enumerate jPOS module metadata embedded under
META-INF/modules/ on the runtime classpath.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetModuleEntries(String prefix) Enumerates every classpath resource located underprefix, traversing both directory- and JAR-based class-loader entries.Returns the sorted list of module UUIDs discovered underMETA-INF/modules/uuids/.getRKeys()Returns the sorted list of revocation-key identifiers discovered underMETA-INF/modules/rkeys/.static StringReturns the Base64-encoded SHA-256 hash of the concatenated module UUIDs, used as a per-installation fingerprint by license verification.
-
Constructor Details
-
ModuleUtils
public ModuleUtils()Default constructor; no instance state to initialise.
-
-
Method Details
-
getModuleEntries
Enumerates every classpath resource located underprefix, traversing both directory- and JAR-based class-loader entries.- Parameters:
prefix- classpath prefix to scan (e.g."META-INF/modules/uuids/")- Returns:
- resource paths relative to the classpath root
- Throws:
IOException- if classpath enumeration fails
-
getModulesUUIDs
Returns the sorted list of module UUIDs discovered underMETA-INF/modules/uuids/.- Returns:
- module UUIDs (one per registered module)
- Throws:
IOException- if classpath enumeration fails
-
getRKeys
Returns the sorted list of revocation-key identifiers discovered underMETA-INF/modules/rkeys/.- Returns:
- revocation key identifiers
- Throws:
IOException- if classpath enumeration fails
-
getSystemHash
Returns the Base64-encoded SHA-256 hash of the concatenated module UUIDs, used as a per-installation fingerprint by license verification.- Returns:
- Base64 SHA-256 hash, or empty string when no UUIDs are registered
- Throws:
IOException- if classpath enumeration failsNoSuchAlgorithmException- if SHA-256 is unavailable
-