/* */ }
/* */
/* */ public Collection<String> process(Document message, SecurityProcess process) throws WSSecurityException
/* */ {
/* 128 */ Collection ids = new HashSet();
/* 129 */ EncryptedKey key = (EncryptedKey)process;
/* 130 */ ReferenceList list = key.getReferenceList();
/* 131 */ for (String uri : list.getAllReferences())
/* */ {
/* 133 */ Element element = Util.findElementByWsuId(message.getDocumentElement(), uri);
/* 134 */ if (element == null) {
/* 135 */ throw new WSSecurityException("A reference list refered to an element that was not found: " + uri);
/* */ }
/* 137 */ if (!isEncryptedData(element)) {
/* 138 */ throw new WSSecurityException("Malformed reference list, a non encrypted data element was referenced: " + uri);
/* */ }
/* 140 */ ids.add(decryptElement(element, key.getSecretKey()));
/* */ }
/* */
/* 143 */ return ids;
/* */ }