// add the EncodingType attribute
binarySecurityTokenElement.addAttribute(soapEnvelope.createName("EncodingType"), encodingType);
// add the ValueType attribute
binarySecurityTokenElement.addAttribute(soapEnvelope.createName("ValueType"), valueType);
// add the certificate as a text node
binarySecurityTokenElement.addTextNode(cert);
return binarySecurityTokenElement;
}
private static SOAPElement createUsernameTokenHeaderElement(
final SOAPEnvelope soapEnvelope,