/* */ public X509IssuerSerial(Element element) throws WSSecurityException
/* */ {
/* 63 */ this.doc = element.getOwnerDocument();
/* */
/* 65 */ if (!"X509Data".equals(element.getLocalName())) {
/* 66 */ throw new InvalidSecurityHeaderException("Invalid message, invalid local name on a X509Data element");
/* */ }
/* 68 */ element = Util.getFirstChildElement(element);
/* 69 */ if (element == null) {
/* 70 */ throw new InvalidSecurityHeaderException("X509DataElement empty");
/* */ }
/* 72 */ if (!element.getLocalName().equals("X509IssuerSerial")) {
/* 73 */ throw new InvalidSecurityHeaderException("Only X509IssuerSerial is supported for an X509Data element");
/* */ }
/* 75 */ element = Util.getFirstChildElement(element);
/* 76 */ if (element == null) {
/* 77 */ throw new InvalidSecurityHeaderException("X509IssuerSerial empty");
/* */ }
/* */
/* 80 */ while (element != null)
/* */ {
/* 82 */ String name = element.getLocalName();
/* 83 */ if (name.equals("X509IssuerName"))
/* 84 */ this.issuer = XMLUtils.getFullTextChildrenFromElement(element);
/* 85 */ else if (name.equals("X509SerialNumber")) {
/* 86 */ this.serial = XMLUtils.getFullTextChildrenFromElement(element);
/* */ }
/* 88 */ element = Util.getNextSiblingElement(element);
/* */ }
/* */
/* 91 */ if (this.serial == null) {
/* 92 */ throw new InvalidSecurityHeaderException("X509SerialNumber missing from X509IssuerSerial");
/* */ }
/* 94 */ if (this.issuer == null)
/* 95 */ throw new InvalidSecurityHeaderException("X509IssuerName missing from X509IssuerSerial");
/* */ }