String tempNonce = dkt.getNonce();
if (tempNonce == null) {
throw new WSSecurityException("Missing wsc:Nonce value");
}
int length = dkt.getLength();
byte[] keyBytes = dkt.deriveKey(length, secret);
WSSecurityEngineResult result =
new WSSecurityEngineResult(WSConstants.DKT, null, keyBytes, null);
wsDocInfo.addTokenElement(elem);
result.put(WSSecurityEngineResult.TAG_ID, dkt.getID());
result.put(WSSecurityEngineResult.TAG_DERIVED_KEY_TOKEN, dkt);