This topic has not yet been rated - Rate this topic

RequestSecurityTokenResponse Class

.NET Framework 4.5

Represents the wst:RequestSecurityTokenResponse element, which is used to return a security token.

System.Object
  System.IdentityModel.OpenObject
    System.IdentityModel.Protocols.WSTrust.WSTrustMessage
      System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse

Namespace:  System.IdentityModel.Protocols.WSTrust
Assembly:  System.IdentityModel (in System.IdentityModel.dll)
public class RequestSecurityTokenResponse : WSTrustMessage

The RequestSecurityTokenResponse type exposes the following members.

  NameDescription
Public methodRequestSecurityTokenResponse()Initializes a new instance of the RequestSecurityTokenResponse class.
Public methodRequestSecurityTokenResponse(WSTrustMessage)Initializes a new instance of the RequestSecurityTokenResponse class based on the specified request message (RST) .
Top
  NameDescription
Public propertyAllowPostdatingGets or sets the contents of the wst:AllowPostdating element. (Inherited from WSTrustMessage.)
Public propertyAppliesToGets or sets the contents of the wsp:AppliesTo element. (Inherited from WSTrustMessage.)
Public propertyAuthenticationTypeGets or sets the contents of the wst:AuthenticationType element. (Inherited from WSTrustMessage.)
Public propertyBinaryExchangeGets or sets the contents of the wst:BinaryExchange element. (Inherited from WSTrustMessage.)
Public propertyCanonicalizationAlgorithmGets or sets the contents of the wst:CanonicalizationAlgorithm element. (Inherited from WSTrustMessage.)
Public propertyContextGets or sets the contents of the Context attribute on the RST or RSTR. (Inherited from WSTrustMessage.)
Public propertyEncryptionAlgorithmGets or sets the contents of the wst:EncryptionAlgorithm element. (Inherited from WSTrustMessage.)
Public propertyEncryptWithGets or sets the contents of the wst:EncryptWith element. (Inherited from WSTrustMessage.)
Public propertyEntropyGets or sets the contents of the wst:Entropy element. (Inherited from WSTrustMessage.)
Public propertyIsFinalGets or sets the flag that determines if the RSTR is the final message and should be serialized as such.
Public propertyKeySizeInBitsGets or sets the contents of the wst:KeySize element inside a RequestSecurityToken (RST) message. (Inherited from WSTrustMessage.)
Public propertyKeyTypeGets or sets the contents of the wst:KeyType element inside a RequestSecurityToken (RST) message. (Inherited from WSTrustMessage.)
Public propertyKeyWrapAlgorithmGets or sets the contents of the wst:KeyWrapAlgorithm element. (Inherited from WSTrustMessage.)
Public propertyLifetimeGets or sets the contents of the wst:Lifetime element inside a RequestSecurityToken (RST) message. (Inherited from WSTrustMessage.)
Public propertyPropertiesGet the properties bag to extend the object. (Inherited from OpenObject.)
Public propertyReplyToGets or sets the address to be used for replying to the Relying Party. (Inherited from WSTrustMessage.)
Public propertyRequestedAttachedReferenceGets or sets the security token reference when the requested token is attached to the message.
Public propertyRequestedProofTokenGets or sets the optional element used to return the proof of possession token.
Public propertyRequestedSecurityTokenGets or sets the optional element used to return the requested security token.
Public propertyRequestedTokenCancelledGets or sets the wst:RequestedTokenCancelled element.
Public propertyRequestedUnattachedReferenceGets or sets the security token reference when the requested token is not attached to the message.
Public propertyRequestTypeGets or sets the wst:RequestType element. (Inherited from WSTrustMessage.)
Public propertySignatureAlgorithmGets or sets the contents of the wst:SignatureAlgorithm element. (Inherited from WSTrustMessage.)
Public propertySignWithGets or sets the contents of the wst:SignWith element. (Inherited from WSTrustMessage.)
Public propertyStatusGets or sets the wst:Status element in the RSTR.
Public propertyTokenTypeGets or sets the contents of the wst:TokenType element. (Inherited from WSTrustMessage.)
Public propertyUseKeyGets or sets the contents of the wst:UseKey element. (Inherited from WSTrustMessage.)
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The wst:RequestSecurityTokenResponse element (message) contains the parameters and properties in the response sent by a security token service (STS) to a security token request (RST) made by a client. The response message (or element) is abbreviated as RSTR. The RequestSecurityTokenRequest class contains properties that represent the elements of the RSTR. An RSTR can form a response to a request that corresponds to any of the request bindings defined by WS-Trust; for example, the Issuance binding, the Renewal binding, the Validate binding, or the Cancel binding. Many of the properties in the RequestSecurityTokenResponse class correspond to elements that are present only in specific kinds of responses as defined by these bindings. Depending on the kind of response a particular RequestSecurityTokenResponse object represents or the parameters present in the specific response that it represents, some properties of the object may be null.

Requests arrive at the STS in a message that contains a wst:RequestSecurityToken element (RST). This message is represented by the RequestSecurityToken class.

For more information about the element that this class represents, see the version of the WS-Trust specification that applies to your scenario.

.NET Framework

Supported in: 4.5.1, 4.5

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Reference

SecurityTokenService
RequestSecurityTokenResponse
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.