writer.writeStartElement(prefix, "KeySize", namespace);
writer.writeCharacters("" + keySize);
writer.writeEndElement();
byte[] secret = WSSecurityUtil.generateNonce(keySize / 8);
byte[] key = spnegoToken.wrapKey(secret);
writeProofToken(writer, prefix, namespace, key);
writer.writeEndElement();