ISecureStoreProvider.GetRestrictedCredentials Method
Returns the Secure Store credentials for the specified target application identifier.
Namespace: Microsoft.BusinessData.Infrastructure.SecureStore
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function GetRestrictedCredentials ( _
appId As String _
) As SecureStoreCredentialCollection
'Usage
Dim instance As ISecureStoreProvider
Dim appId As String
Dim returnValue As SecureStoreCredentialCollection
returnValue = instance.GetRestrictedCredentials(appId)
SecureStoreCredentialCollection GetRestrictedCredentials(
string appId
)
Parameters
appId
Type: System.StringThe target application identifier.
Return Value
Type: Microsoft.BusinessData.Infrastructure.SecureStore.SecureStoreCredentialCollection
The collection of credentials.
Exceptions
Exception | Condition |
---|---|
SecureStoreCredentialsNotFoundException | The credentials are not available for the specified target application. |
SecureStoreTargetApplicationNotFoundException | The target application does not exist in the Secure Store. |
Remarks
GetRestrictedCredentials returns the Secure Store credentials for restricted and non-restricted target application types while GetCredentials returns the Secure Store credentials of only non-restricted target application types.
The Secure Store provider obtains the correct identity for the current user from the current request.