Security demo for java6