WSFederationAuthenticationModule.GetXmlTokenFromMessage Método

Definição

Extrai o token emitido da mensagem de resposta de conexão da Web Services Federation especificada.Extracts the issued token from the specified WS-Federation sign-in response message.

Sobrecargas

GetXmlTokenFromMessage(SignInResponseMessage)

Extrai o token emitido da mensagem de resposta de conexão da Web Services Federation especificada.Extracts the issued token from the specified WS-Federation sign-in response message.

GetXmlTokenFromMessage(SignInResponseMessage, WSFederationSerializer)

Extrai o token emitido da mensagem de resposta de conexão da Web Services Federation especificada usando o serializador da Web Services Federation especificado.Extracts the issued token from the specified WS-Federation sign-in response message by using the specified WS-Federation serializer.

GetXmlTokenFromMessage(SignInResponseMessage)

Extrai o token emitido da mensagem de resposta de conexão da Web Services Federation especificada.Extracts the issued token from the specified WS-Federation sign-in response message.

public:
 virtual System::String ^ GetXmlTokenFromMessage(System::IdentityModel::Services::SignInResponseMessage ^ message);
public virtual string GetXmlTokenFromMessage (System.IdentityModel.Services.SignInResponseMessage message);
abstract member GetXmlTokenFromMessage : System.IdentityModel.Services.SignInResponseMessage -> string
override this.GetXmlTokenFromMessage : System.IdentityModel.Services.SignInResponseMessage -> string
Public Overridable Function GetXmlTokenFromMessage (message As SignInResponseMessage) As String

Parâmetros

message
SignInResponseMessage

A mensagem de resposta de conexão da qual extrair o token.The sign-in response message to extract the token from. A resposta de conexão contém o token emitido pelo STS.The sign-in response contains the token issued by the STS.

Retornos

String

Uma cadeia de caracteres que contém o XML que representa o token emitido.A string that contains the XML that represents the issued token. Este é um elemento <wst:RequestSecurityTokenResponse>.This is a <wst:RequestSecurityTokenResponse> element.

Exceções

message é null.message is null.

message não contém um token.message does not contain a token. (Ele não contém um parâmetro wresult ou wresultptr válido).(It does not contain a valid wresult or wresultptr parameter.)

Comentários

Se não houver nenhum parâmetro os na mensagem de resposta de entrada, o GetReferencedResult método será chamado para tentar obter o token usando o parâmetro wresultptr.If there is no wresult parameter in the sign-in response message, the GetReferencedResult method is called to try to get the token using the wresultptr parameter.

Aplica-se a

GetXmlTokenFromMessage(SignInResponseMessage, WSFederationSerializer)

Extrai o token emitido da mensagem de resposta de conexão da Web Services Federation especificada usando o serializador da Web Services Federation especificado.Extracts the issued token from the specified WS-Federation sign-in response message by using the specified WS-Federation serializer.

public:
 virtual System::String ^ GetXmlTokenFromMessage(System::IdentityModel::Services::SignInResponseMessage ^ message, System::IdentityModel::Services::WSFederationSerializer ^ federationSerializer);
public virtual string GetXmlTokenFromMessage (System.IdentityModel.Services.SignInResponseMessage message, System.IdentityModel.Services.WSFederationSerializer federationSerializer);
abstract member GetXmlTokenFromMessage : System.IdentityModel.Services.SignInResponseMessage * System.IdentityModel.Services.WSFederationSerializer -> string
override this.GetXmlTokenFromMessage : System.IdentityModel.Services.SignInResponseMessage * System.IdentityModel.Services.WSFederationSerializer -> string
Public Overridable Function GetXmlTokenFromMessage (message As SignInResponseMessage, federationSerializer As WSFederationSerializer) As String

Parâmetros

message
SignInResponseMessage

A mensagem de resposta de conexão da qual extrair o token.The sign-in response message to extract the token from. A resposta de conexão contém o token emitido pelo STS.The sign-in response contains the token issued by the STS.

federationSerializer
WSFederationSerializer

O serializador da Web Services Federation a ser usado para desserializar a mensagem de resposta de conexão.The WS-Federation serializer to use to de-serialize the sign-in response message.

Retornos

String

Uma cadeia de caracteres que contém o XML que representa o token emitido.A string that contains the XML that represents the issued token. Este é um elemento <wst:RequestSecurityTokenResponse>.This is a <wst:RequestSecurityTokenResponse> element.

Exceções

message é null.message is null.

Aplica-se a