What I am trying to do :
I am trying to connect to Web Portal [that uses https]using Java. I have written code for supplying user credentials using Authenticator class.W
You don't give a body to your method. Check the line where you have the problem and override your method with the code you want.