Save a PasswordAuthentication for this (store or transport) URLName. If pw is null the entry corresponding to the URLName is removed. This is normally used only by the store or transport implementations to allow authentication information to be shared among multiple uses of a session. @param ur
(URLName url, PasswordAuthentication pw)
| 871 | * @param pw the PasswordAuthentication to save |
| 872 | */ |
| 873 | public void setPasswordAuthentication(URLName url, |
| 874 | PasswordAuthentication pw) { |
| 875 | if (pw == null) |
| 876 | authTable.remove(url); |
| 877 | else |
| 878 | authTable.put(url, pw); |
| 879 | } |
| 880 | |
| 881 | /** |
| 882 | * Return any saved PasswordAuthentication for this (store or transport) |