Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 12-17
Link Here
|
12 |
|
12 |
|
13 |
import java.net.*; |
13 |
import java.net.*; |
14 |
|
14 |
|
|
|
15 |
import org.eclipse.core.runtime.OperationCanceledException; |
16 |
import org.eclipse.ui.internal.net.NetUIMessages; |
17 |
|
15 |
public class NetAuthenticator extends Authenticator { |
18 |
public class NetAuthenticator extends Authenticator { |
16 |
|
19 |
|
17 |
/* |
20 |
/* |
Lines 44-49
Link Here
|
44 |
return new PasswordAuthentication(auth.getUser(), auth |
47 |
return new PasswordAuthentication(auth.getUser(), auth |
45 |
.getPassword().toCharArray()); |
48 |
.getPassword().toCharArray()); |
46 |
else |
49 |
else |
47 |
return null; |
50 |
throw new OperationCanceledException(NetUIMessages.NetAuthenticator_OperationCanceled); |
48 |
} |
51 |
} |
49 |
} |
52 |
} |