Last change
on this file since 2641 was 2641, checked in by Gubaer, 15 years ago |
new: supports system defined proxies if JOSM is started with -Djava.net.useSystemProxies=true
fixed #1641: JOSM doesn't allow for setting HTTP proxy user/password distrinct from OSM server user/password
fixed #2865: SOCKS Proxy Support
fixed #4182: Proxy Authentication
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.io.auth;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * CredentialsManagerResponse represents the response from {@see CredentialsManager#getCredentials(java.net.Authenticator.RequestorType, boolean)}.
|
---|
6 | *
|
---|
7 | * The response consists of the username and the password the requested credentials consists of.
|
---|
8 | * In addition, it provides information whether authentication was canceled by the user, i.e.
|
---|
9 | * because he or she canceled a username/password dialog (see {@see #isCanceled()}.
|
---|
10 | *
|
---|
11 | */
|
---|
12 | public class CredentialsManagerResponse {
|
---|
13 | private String username;
|
---|
14 | private char[] password;
|
---|
15 | private boolean canceled;
|
---|
16 | public String getUsername() {
|
---|
17 | return username;
|
---|
18 | }
|
---|
19 | public void setUsername(String username) {
|
---|
20 | this.username = username;
|
---|
21 | }
|
---|
22 | public char[] getPassword() {
|
---|
23 | return password;
|
---|
24 | }
|
---|
25 | public void setPassword(char[] password) {
|
---|
26 | this.password = password;
|
---|
27 | }
|
---|
28 | public boolean isCanceled() {
|
---|
29 | return canceled;
|
---|
30 | }
|
---|
31 | public void setCanceled(boolean cancelled) {
|
---|
32 | this.canceled = cancelled;
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.