WSFederationAuthenticationModule.GetXmlTokenFromMessage 方法 (SignInResponseMessage, WSFederationSerializer)
Extract the issued token from the WS-Federation Passive Protocol SignIn Response message received from an STS.
命名空间: Microsoft.IdentityModel.Web
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)
用法
Dim instance As WSFederationAuthenticationModule Dim message As SignInResponseMessage Dim federationSerializer As WSFederationSerializer Dim returnValue As String returnValue = instance.GetXmlTokenFromMessage(message, federationSerializer)
语法
声明
Public Overridable Function GetXmlTokenFromMessage ( _
message As SignInResponseMessage, _
federationSerializer As WSFederationSerializer _
) As String
public virtual string GetXmlTokenFromMessage (
SignInResponseMessage message,
WSFederationSerializer federationSerializer
)
public:
virtual String^ GetXmlTokenFromMessage (
SignInResponseMessage^ message,
WSFederationSerializer^ federationSerializer
)
public String GetXmlTokenFromMessage (
SignInResponseMessage message,
WSFederationSerializer federationSerializer
)
public function GetXmlTokenFromMessage (
message : SignInResponseMessage,
federationSerializer : WSFederationSerializer
) : String
参数
- message
The HTTP request at the FederatedAuthenticationModule. This request contains the token issued by the STS in a WS-Federation Passive Protocol SignIn Response message from the STS.
- federationSerializer
The WS-Federation Serializer used to de-serialize the WS-Federation Passive Protocol SignIn Response message.
返回值
The issued token as an XML String.
异常
异常类型 | 条件 |
---|---|
ArgumentNullException | One of the parameters is null. |
线程安全
此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。
平台
开发平台
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
请参见
参考
WSFederationAuthenticationModule 类
WSFederationAuthenticationModule 成员
Microsoft.IdentityModel.Web 命名空间