SecurityContextToken.ProofToken Property
Gets or sets the encrypted session key obtained from the security token request.
Namespace: Microsoft.Web.Services2.Security.Tokens
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim securityContextToken1 As SecurityContextToken
Dim returnValue As RequestedProofToken
returnValue = securityContextToken1.ProofToken
Dim sampleValue As RequestedProofToken
securityContextToken1.ProofToken = sampleValue
Syntax
'Declaration
Public Overridable Property ProofToken() As RequestedProofToken
public virtual RequestedProofToken ProofToken {get; set;}
public: property RequestedProofToken^ ProofToken{
RequestedProofToken^ get();
Void set(RequestedProofToken^);
}
public RequestedProofToken get_ProofToken();
public void set_ProofToken(RequestedProofToken);
public function get ProofToken() : RequestedProofToken;
public function set ProofToken(RequestedProofToken);
Property Value
A RequestedProofToken containing the encrypted session key.
Exceptions
| Exception type | Condition |
|---|---|
| System.ArgumentNullException | ProofToken is set to null. |
| System.InvalidOperationException | The KeyBytesproperty of the token assigned to ProofToken does not match this token's KeyBytes property. |
Remarks
The BaseToken, ProofToken, and SupportingTokens properties are used when a security token service is created that issues SecurityContextToken security tokens. The BaseToken property is the base token, as specified by the WS-Trust specification, and typically refers to the security token that signed a security token request. The ProofToken property contains the session key associated with the issued SecurityContextToken, but it is encrypted so that only the requestor of the security token can decrypt it. The tokens in the SupportingTokens property map to the <Supporting> element of a security token request that is optionally used to authorize the request.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
SecurityContextToken Class
Microsoft.Web.Services2.Security.Tokens Namespace
BaseToken
SupportingTokens