Click or drag to resize
RestApiAuthMgrWpf Constructor
Constructor

Namespace: Rally.RestApi.UiForWpf
Assembly: Rally.RestApi.UiForWpf (in Rally.RestApi.UiForWpf.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public RestApiAuthMgrWpf(
	string applicationToken,
	string encryptionKey,
	IEncryptionRoutines encryptionRoutines,
	string webServiceVersion = "v2.0"
)

Parameters

applicationToken
Type: SystemString
An application token to be used as the file name to store data as. Each consuming application should use a unique name in order to ensure that the user credentials are not overwritten by other applications.
encryptionKey
Type: SystemString
The encryption key, or salt, to be used for any encryption routines. This salt should be different for each user, and not the same for everyone consuming the same application. Only used for UI support.
encryptionRoutines
Type: Rally.RestApi.AuthIEncryptionRoutines
The encryption routines to use for encryption/decryption of data. Only used for UI support.
webServiceVersion (Optional)
Type: SystemString
The version of the WSAPI API to use.
Examples
C#
// You must define your own private application token. This ensures that your login details are not overwritten by someone else.
string applicationToken = "RallyRestAPISample";
// You must set a user specific salt for encryption.
string encryptionKey = "UserSpecificSaltForEncryption";
// You must define your own encryption routines.
IEncryptionRoutines encryptionUtilities = new EncryptionUtilities();

// Instantiate authorization manager
wpfAuthMgr = new RestApiAuthMgrWpf(applicationToken, encryptionKey, encryptionUtilities);
See Also