C# Класс Thinktecture.IdentityModel.Utility.WSTrustClient

Wrapper for the WIF WSTrustChannelFactory/WSTrustChannel plumbing. This code is mainly for convience and does not provide any optimizations like caching of the channel factory.
Показать файл Открыть проект

Открытые методы

Метод Описание
Issue ( EndpointAddress stsAddress, System.ServiceModel.Channels.Binding binding, ClientCredentials credentials, RequestSecurityToken rst, RequestSecurityTokenResponse &rstr ) : System.IdentityModel.Tokens.SecurityToken

Requests a token desribed by an RST.

Issue ( EndpointAddress stsAddress, EndpointAddress appliesTo, System.ServiceModel.Channels.Binding binding, ClientCredentials credentials ) : System.IdentityModel.Tokens.SecurityToken

Requests a bearer token.

Приватные методы

Метод Описание
CreateBearerRst ( EndpointAddress appliesTo ) : RequestSecurityToken
CreateWSTrustChannel ( EndpointAddress stsAddress, System.ServiceModel.Channels.Binding binding, ClientCredentials credentials ) : IWSTrustChannelContract

Описание методов

Issue() публичный статический Метод

Requests a token desribed by an RST.
public static Issue ( EndpointAddress stsAddress, System.ServiceModel.Channels.Binding binding, ClientCredentials credentials, RequestSecurityToken rst, RequestSecurityTokenResponse &rstr ) : System.IdentityModel.Tokens.SecurityToken
stsAddress System.ServiceModel.EndpointAddress The STS address.
binding System.ServiceModel.Channels.Binding The binding.
credentials System.ServiceModel.Description.ClientCredentials The credentials.
rst RequestSecurityToken The RST.
rstr RequestSecurityTokenResponse The RSTR.
Результат System.IdentityModel.Tokens.SecurityToken

Issue() публичный статический Метод

Requests a bearer token.
public static Issue ( EndpointAddress stsAddress, EndpointAddress appliesTo, System.ServiceModel.Channels.Binding binding, ClientCredentials credentials ) : System.IdentityModel.Tokens.SecurityToken
stsAddress System.ServiceModel.EndpointAddress The STS address.
appliesTo System.ServiceModel.EndpointAddress The realm address.
binding System.ServiceModel.Channels.Binding The binding.
credentials System.ServiceModel.Description.ClientCredentials The credentials.
Результат System.IdentityModel.Tokens.SecurityToken