Share via


GetCredentialsUsingTicket(unsigned int, string, string, string[]) Method

The GetCredentialsUsingTicket method of the Credentials class gets credentials for the specified access token.

Parameters

ui32Flags   Reserved for internal use.

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

strTicket   The access token. The maximum allowed number of characters is 300.

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

Exceptions

Exception Type Condition
SingleSignonException Method fails or access token has timed-out

Remarks

Only users who are members of the single sign-on administrator account can call the GetCredentialsUsingTicket method.

The GetCredentialsUsingTicket 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 GetCredentialsUsingTicket.

Example

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

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security