Java implementation of Heartbleed test