Compartilhar via


SecureCredentialProvider Class

Applies to: PerformancePoint Services for SharePoint Server, Enterprise version
Provides credentials for data source authentication.

Inheritance Hierarchy

System.Object
  Microsoft.PerformancePoint.Scorecards.Server.SecureCredentialProvider

Namespace:  Microsoft.PerformancePoint.Scorecards.Server
Assembly:  Microsoft.PerformancePoint.Scorecards.Server (in Microsoft.PerformancePoint.Scorecards.Server.dll)

Syntax

'Declaration
Public Class SecureCredentialProvider _
    Implements IDisposable
'Usage
Dim instance As SecureCredentialProvider
public class SecureCredentialProvider : IDisposable

Remarks

Custom data source providers can use the SecureCredentialProvider object to impersonate the credentials for the Unattended Service Account in a data source connection, as determined by the DataSource.ConnectionContext property.

Examples

Use SecureCredentialProvider where a connection to the data source is initiated, such as in the CustomDataSourceProvider.GetCubeNames() method or the CustomDataSourceProvider.GetPreviewDataSet(Int32) method. The pattern to use is shown in the following code snippet.

using (new ConnectionContextHelper(this.ConnectionContext, new SecureCredentialProvider()))
    {
        // Prior to this point, a connection would be created and configured.
        connection.Open();
    }

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SecureCredentialProvider Members

Microsoft.PerformancePoint.Scorecards.Server Namespace