/* */
/* */ public SecurityHeader(Element element, SecurityStore store) throws WSSecurityException
/* */ {
/* 67 */ this.document = element.getOwnerDocument();
/* 68 */ KeyResolver resolver = new KeyResolver(store);
/* 69 */ BinarySecurityTokenValidator validator = new BinarySecurityTokenValidator(store);
/* 70 */ Element child = Util.getFirstChildElement(element);
/* 71 */ while (child != null)
/* */ {
/* 73 */ String tag = child.getLocalName();
/* */
/* 75 */ if (tag.equals("BinarySecurityToken"))
/* */ {
/* 77 */ BinarySecurityToken token = BinarySecurityToken.createBinarySecurityToken(child);
/* 78 */ validator.validateToken(token);
/* 79 */ resolver.cacheToken(token);
/* 80 */ this.tokens.add(token);
/* */ }
/* 82 */ else if (tag.equals("UsernameToken")) {
/* 83 */ this.tokens.add(new UsernameToken(child));