Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.io.auth;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * CredentialsAgentResponse represents the response from {@see CredentialsAgent#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 CredentialsAgentResponse {
|
---|
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 canceled) {
|
---|
32 | this.canceled = canceled;
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.