*/
public String getCipherValue() throws XWSSecurityException {
if (cipherData == null) {
log.log(Level.SEVERE, "WSS0347.missing.cipher.data");
throw new XWSSecurityException("Cipher data has not been set");
}
Iterator cipherValues = null;
try {
cipherValues =
cipherData.getChildElements(
getSoapFactory().createName(
"CipherValue",
MessageConstants.XENC_PREFIX,
MessageConstants.XENC_NS));
} catch (SOAPException e) {
log.log(Level.SEVERE, "WSS0352.error.getting.cipherValue", e.getMessage());
throw new XWSSecurityException(e);
}
if (!cipherValues.hasNext()) {
log.log(Level.SEVERE, "WSS0353.missing.cipherValue");
throw new XWSSecurityException("Cipher Value not present");
}
return getFullTextChildrenFromElement((SOAPElement) cipherValues.next());
}