Skip to content

Instantly share code, notes, and snippets.

@danielkec
Created September 23, 2013 10:42
Show Gist options
  • Save danielkec/6668880 to your computer and use it in GitHub Desktop.
Save danielkec/6668880 to your computer and use it in GitHub Desktop.
Authenticator myAuth = new Authenticator(){
@Override
protected PasswordAuthentication getPasswordAuthentication(){
return new PasswordAuthentication("jmeno", "heslo".toCharArray());
}
};
Authenticator.setDefault(myAuth);
@zvonicek
Copy link

Díky, přesně toto jsem potřeboval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment