public Collection<String> process(Document message, SecurityProcess process) throws WSSecurityException
{
Collection<String> ids = new HashSet<String>();
EncryptedKey key = (EncryptedKey) process;
ReferenceList list = key.getReferenceList();
for (String uri : list.getAllReferences())
{
Element element = Util.findElementByWsuId(message.getDocumentElement(), uri);
if (element == null)
throw new WSSecurityException("A reference list refered to an element that was not found: " + uri);