org.openstreetmap.josm.io.auth
Class CredentialsAgentResponse

java.lang.Object
  extended by org.openstreetmap.josm.io.auth.CredentialsAgentResponse

public class CredentialsAgentResponse
extends java.lang.Object

CredentialsAgentResponse represents the response from CredentialsAgent#getCredentials(java.net.Authenticator.RequestorType, boolean). The response consists of the username and the password the requested credentials consists of. In addition, it provides information whether authentication was canceled by the user, i.e. because he or she canceled a username/password dialog (see isCanceled().


Field Summary
private  boolean canceled
           
private  char[] password
           
private  java.lang.String username
           
 
Constructor Summary
CredentialsAgentResponse()
           
 
Method Summary
 char[] getPassword()
           
 java.lang.String getUsername()
           
 boolean isCanceled()
           
 void setCanceled(boolean canceled)
           
 void setPassword(char[] password)
           
 void setUsername(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

username

private java.lang.String username

password

private char[] password

canceled

private boolean canceled
Constructor Detail

CredentialsAgentResponse

public CredentialsAgentResponse()
Method Detail

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

getPassword

public char[] getPassword()

setPassword

public void setPassword(char[] password)

isCanceled

public boolean isCanceled()

setCanceled

public void setCanceled(boolean canceled)


JOSM