blob: a11f1e1bd0058525ad243e53449876ffcfbe26c6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package org.openslx.network;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
public class StaticProxyAuthenticator extends Authenticator
{
private final String username, password;
public StaticProxyAuthenticator( String username, String password )
{
this.username = username;
this.password = password;
}
protected PasswordAuthentication getPasswordAuthentication()
{
return new PasswordAuthentication(
this.username, this.password.toCharArray() );
}
}
|