SecureStoreProvider.GetCredentialsUsingTicket Method
Gets the credentials for the target application using the specified previously issued Secure Store ticket and target application ID.
Namespace: Microsoft.Office.SecureStoreService.Server
Assembly: Microsoft.Office.SecureStoreService (in Microsoft.Office.SecureStoreService.dll)
Syntax
'Declaration
<SecureStorePermissionAttribute(SecurityAction.Demand, Access := SecureStoreAccess.Credentials)> _
<PermissionSetAttribute(SecurityAction.Assert, Name := "FullTrust")> _
Public Function GetCredentialsUsingTicket ( _
ticket As String, _
appId As String _
) As SecureStoreCredentialCollection
'Usage
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
)
Parameters
ticket
Type: System.StringA Secure Store ticket that is previously issued through a call to IssueTicket().
appId
Type: System.StringThe target application ID.
Return Value
Type: Microsoft.BusinessData.Infrastructure.SecureStore.SecureStoreCredentialCollection
The collection of the credentials for the target application.
Implements
ISecureStoreProvider.GetCredentialsUsingTicket(String, String)
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. |