Code example for PasswordAuthentication

0
			if (this.password == null) 
			{ 
				this.password = console.readPassword("Password: "); 
			} 
			 
			credentials = new PasswordAuthentication(this.username, this.password); 
		} 
		 
		return credentials; 
	} 
}