in main/src/main/java/org/apache/james/jdkim/DKIMVerifier.java [206:230]
public List<SignatureRecord> verify(InputStream is) throws IOException,
FailException {
Message message;
try {
try {
message = new Message(is);
} catch (RuntimeException e) {
throw e;
} catch (IOException e) {
throw e;
} catch (Exception e1) {
// This can only be a MimeException but we don't declare to allow usage of
// DKIMSigner without Mime4J dependency.
throw new PermFailException("Mime parsing exception: "
+ e1.getMessage(), e1);
}
try {
return verify(message, message.getBodyInputStream());
} finally {
message.dispose();
}
} finally {
is.close();
}
}