C# Class 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.
显示文件 Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method Description
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.

Private Methods

Method Description
CreateBearerRst ( EndpointAddress appliesTo ) : RequestSecurityToken
CreateWSTrustChannel ( EndpointAddress stsAddress, System.ServiceModel.Channels.Binding binding, ClientCredentials credentials ) : IWSTrustChannelContract

Method Details

Issue() public static method

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.
return System.IdentityModel.Tokens.SecurityToken

Issue() public static method

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.
return System.IdentityModel.Tokens.SecurityToken