List<XMLSecurityConstants.Action> actions = new ArrayList<XMLSecurityConstants.Action>();
actions.add(XMLSecurityConstants.SIGNATURE);
properties.setActions(actions);
// Set the key up
KeyStore keyStore = KeyStore.getInstance("jks");
keyStore.load(
this.getClass().getClassLoader().getResource("transmitter.jks").openStream(),
"default".toCharArray()
);
Key key = keyStore.getKey("transmitter", "default".toCharArray());
properties.setSignatureKey(key);
X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
properties.setSignatureCerts(new X509Certificate[]{cert});
String digestAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha3-256";
SecurePart securePart = new SecurePart(