SPTrustedProviderCollection<T>.GetProviderBySigningCertificate Method
Retrieves the provider with the specified signing certificate from the collection.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetProviderBySigningCertificate ( _
certificate As X509Certificate2 _
) As T
'Usage
Dim instance As SPTrustedProviderCollection
Dim certificate As X509Certificate2
Dim returnValue As T
returnValue = instance.GetProviderBySigningCertificate(certificate)
public T GetProviderBySigningCertificate(
X509Certificate2 certificate
)
Parameters
certificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2The certificate with the public key used to sign tokens issued by the login provider.
Return Value
Type: T
The provider that is retrieved from the collection with certificate.
Remarks
This method retrieves the provider with the certificate from the collection.
This method returns null if it cannot find a provider with the certificate or certificate is null .
See Also
Reference
SPTrustedProviderCollection<T> Class