sctBuilder.setWscVersion(version);
Crypto crypto = CryptoFactory.getInstance("transmitter-crypto.properties");
sctBuilder.prepare(doc, crypto);
// Store the secret
SecretKeyCallbackHandler callbackHandler = new SecretKeyCallbackHandler();
callbackHandler.addSecretKey(sctBuilder.getIdentifier(), tempSecret);
// Derived key signature
WSSecDKSign sigBuilder = new WSSecDKSign();
sigBuilder.setWscVersion(version);
sigBuilder.setExternalKey(tempSecret, sctBuilder.getIdentifier());