Class LoginInfo
Stores developers login/password to Aras in a secure way to allow arassync / integration tests to access Aras repeatedly.
Currently stored encrypted under User\AppData\Local.
Does not keep string secure in memory at the moment, as it is sent to IOM.dll unencrypted anyway.
Inheritance
System.Object
LoginInfo
Namespace: BitAddict.Aras.Security
Assembly: BitAddict.Aras.dll
Syntax
public class LoginInfo
Properties
KeyFilePath
Path to encrytped key file
Declaration
public static string KeyFilePath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Password
Unencrypted password
Declaration
public string Password { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Username
User name
Declaration
public string Username { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Delete()
Delete key file
Declaration
public static void Delete()
Exists()
Check if key file exists
Declaration
public static bool Exists()
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsValid()
Loads and decrypts key file, then checks that it contains some info
Declaration
public static bool IsValid()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Load()
Loads login info from key file
Declaration
[CanBeNull]
public static LoginInfo Load()
Returns
| Type | Description |
|---|---|
| LoginInfo |
Exceptions
| Type | Condition |
|---|---|
| System.Exception |
Store()
Stores login info in key file
Declaration
public void Store()