Security samples for Java