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
Have you seen this code fragment ?
@Override
public Result authenticate(HttpExchange he) {
throw new UnsupportedOperationException("Not supported yet.");
}
It's precisely the one that will throw the aforementionned exception each time you try to authenticate.
So, to my mind, the solution to your authentication problem is quite simple : implement this method.