XMLSignatureInput result = null;
try {
uriNew = getNewURI(uri.getNodeValue(), baseUri);
} catch (URI.MalformedURIException ex) {
// log
throw new ResourceResolverException("empty", ex, uri, baseUri);
}
if (soapMsg == null) throw generateException(uri, baseUri, errors[1]);
try {
AttachmentPart _part = ((SecurableSoapMessage)soapMsg).getAttachmentPart(uriNew.toString());
if (_part == null) {
// log
throw new URIResolverException();
}
Object[] obj = AttachmentSignatureInput._getSignatureInput(_part);
result = new AttachmentSignatureInput((byte[])obj[1]);
((AttachmentSignatureInput)result).setMimeHeaders((Vector)obj[0]);
((AttachmentSignatureInput)result).setContentType(_part.getContentType());
} catch (XWSSecurityException e) {
throw new ResourceResolverException("empty", e, uri, baseUri);
} catch (SOAPException spe) {
// log
throw new ResourceResolverException("empty", spe, uri, baseUri);
} catch (java.io.IOException ioe) {
// log
throw new ResourceResolverException("empty", ioe, uri, baseUri);
}
result.setSourceURI(uriNew.toString());
return result;