MCPcopy Create free account
hub / github.com/M66B/FairEmail / setPasswordAuthentication

Method setPasswordAuthentication

app/src/main/java/javax/mail/Session.java:873–879  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 1

connectMethod · 0.80

Calls 2

removeMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected