The following table shows the methods used
in Java and C# clients for managing credentials.
|
|
|
addPassword(hostname, username, password)
|
AddPassword(hostname, username, password)
|
Stores the password for
the specified host and user. Overwrites any existing password for that user in
the credential store. Creates the default credential store backing file in the
default location (if it does not exist).
|
removePassword(hostname, username)
|
RemovePassword(hostname, username)
|
Deletes the password for
the specified user from the credential store.
|
clearPasswords()
|
ClearPasswords()
|
Deletes all passwords
from the credential store.
|
getPassword(hostname, username)
|
GetPassword(hostname, username)
|
Returns the password for
the specified host and user from the credential store.
|
getHosts()
|
GetHosts()
|
Returns the set of hosts
contained in the credential store.
|
getUsernames(hostname)
|
GetUsernames(hostname)
|
Returns the collection of
all user names that have passwords stored for the specified
hostname.
|
close()
|
Close()
|
Closes the credential
store, preventing further method invocations. Releases associated resources.
|