The implementation of security technique in java