final java.util.List<WSDataRef> refs =
(java.util.List<WSDataRef>) result.get(WSSecurityEngineResult.TAG_DATA_REF_URIS);
assertNotNull(refs);
encrypted = true;
for (java.util.Iterator<WSDataRef> jpos = refs.iterator(); jpos.hasNext();) {
final WSDataRef ref = jpos.next();
assertNotNull(ref);
assertNotNull(ref.getName());
assertEquals(
expectedEncryptedElement,
ref.getName()
);
assertNotNull(ref.getProtectedElement());
if (LOG.isDebugEnabled()) {
LOG.debug("WSDataRef element: ");
LOG.debug(
org.apache.ws.security.util.DOM2Writer.nodeToString(
ref.getProtectedElement()
)
);
}
}
}