GetCredentials(unsigned int, string, string) Method

The GetCredentials method of the Credentials class gets the credentials for the specified enterprise application definition.

Parameters

ui32Flags Reserved for internal use.

strApplicationName The name of the enterprise application definition. The maximum allowed number of characters is 128.

Credentials Reference to an array**** of strings**** that represent the credentials.

Exceptions

Exception Type Condition
SingleSignonException Method fails or credentials not found.

Remarks

The GetCredentials method gets both user and group credentials for an application definition. All users can call this method. The GetCredentials method is audited with a result of success or failure and the user that called the method in the single sign-on database. The ServiceAction enumeration recorded is GetCredentials.

Example

The following code example shows how to use the GetCredentials method.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security