Метод SecureStoreProvider.GetCredentialsUsingTicket
Получает учетные данные конечного приложения, используя указанный ранее выданные Secure Store билетов и целевой идентификатор приложения.
Пространство имен: Microsoft.Office.SecureStoreService.Server
Сборка: Microsoft.Office.SecureStoreService (в Microsoft.Office.SecureStoreService.dll)
Синтаксис
'Декларация
<SecureStorePermissionAttribute(SecurityAction.Demand, Access := SecureStoreAccess.Credentials)> _
<PermissionSetAttribute(SecurityAction.Assert, Name := "FullTrust")> _
Public Function GetCredentialsUsingTicket ( _
ticket As String, _
appId As String _
) As SecureStoreCredentialCollection
'Применение
Dim instance As SecureStoreProvider
Dim ticket As String
Dim appId As String
Dim returnValue As SecureStoreCredentialCollection
returnValue = instance.GetCredentialsUsingTicket(ticket, _
appId)
[SecureStorePermissionAttribute(SecurityAction.Demand, Access = SecureStoreAccess.Credentials)]
[PermissionSetAttribute(SecurityAction.Assert, Name = "FullTrust")]
public SecureStoreCredentialCollection GetCredentialsUsingTicket(
string ticket,
string appId
)
Параметры
ticket
Тип: System.StringSecure Store билет, выданный ранее путем вызова IssueTicket().
appId
Тип: System.StringИдентификатор целевого приложения.
Возвращаемое значение
Тип: Microsoft.BusinessData.Infrastructure.SecureStore.SecureStoreCredentialCollection
Набор учетных данных для конечного приложения.
Реализации
ISecureStoreProvider.GetCredentialsUsingTicket(String, String)
Исключения
Исключение | Условие |
---|---|
SecureStoreCredentialsNotFoundException | Учетные данные не доступны для указанного конечного приложения. |
SecureStoreTargetApplicationNotFoundException | Конечное приложение не существует в Secure Store. |
См. также
Справочные материалы
Пространство имен Microsoft.Office.SecureStoreService.Server