i am trying to get the authtoken using twitter 4j i put it in try and catch but it catches always this error twitter4j.TwitterException: Not trusted server certificate here it is my function
public String BeginAuthorization()
{
try
{
if(null==currentRequestToken)
{
currentRequestToken=twitter.getOAuthRequestToken();
}
return currentRequestToken.getAuthorizationURL();
}
catch (TwitterException e) {
// TODO: handle exception
e.printStackTrace();
}
return null;
}