| e-CryptIt Engine Xojo Plugin |
|
EinhugurVault.GetPassword Method
Retrieves password from the Vault.
shared GetPassword(
package
as String,
service
as String,
user
as String)
as String
Parameters
- package
- Your application Bundle package id such as for example com.einhugur.test
- service
- Service name or description.
- user
- User name.
Returns
- String
Remarks
This function can throw EinhugurVaultException.
Example:
try
#pragma BreakOnExceptions False
var password as String = EinhugurVault.GetPassword("com.einhugur.test", "usage-example", "be")
password = password.DefineEncoding(Encodings.UTF8)
MessageBox password
#pragma BreakOnExceptions true
catch ex as EinhugurVaultException
MessageBox ex.Message
end try
Note that if you have GetPassword in the line bellow right after you SetPassword then you might not get the newly set password. Some of the operating systems are setting this in async context so if calling GetPassword right after setting it then it might not be fully set yet in all cases.
See Also
EinhugurVault Class