//set the wsse11:TokenType attribute as required by WSS 1.1
//tokenRef.setTokenType(MessageConstants.EncryptedKey_NS);
//TODO: Temporary fix for signing
String dktId = keyBinding.getUUID();
if (dktId == null) {
dktId = secureMessage.generateId();
}
String nonce = Base64.encode(dkt.getNonce());
DerivedKeyTokenHeaderBlock dktHeadrBlock =
new DerivedKeyTokenHeaderBlock(securityHeader.getOwnerDocument(), tokenRef, nonce, dkt.getOffset(), dkt.getLength() ,dktId);
// insert the derivedKey into SecurityHeader