Java security framework samples