a vpn for both http and https layer built in java