Created
September 23, 2013 10:42
-
-
Save danielkec/6668880 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Authenticator myAuth = new Authenticator(){ | |
@Override | |
protected PasswordAuthentication getPasswordAuthentication(){ | |
return new PasswordAuthentication("jmeno", "heslo".toCharArray()); | |
} | |
}; | |
Authenticator.setDefault(myAuth); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Díky, přesně toto jsem potřeboval.