Build 1.01.318.0
[This is preliminary documentation and is subject to change.]
The TcpChannel type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TcpChannel |
Attaches the object to an existing socket.
|
Methods
| Name | Description | |
|---|---|---|
| ActivateToken |
Activates a new token.
| |
| BeginWriteMessage(ArraySegment<(Of <<'(Byte>)>>), Int32, Object) |
Queues a write request.
| |
| BeginWriteMessage(BufferCollection, Int32, Object) |
Queues a write request.
| |
| CalculateSymmetricKeySizes |
Calculates the symmetric key sizes based on the current security policy.
| |
| ChannelStateChanged |
Reports that the channel state has changed (in another thread).
| |
| CompareCertificates |
Compares two certificates.
| |
| ComputeKeys |
Computes the keys for a token.
| |
| CreateNonce |
Creates a new nonce.
| |
| CreateToken |
Creates a new token.
| |
| Decrypt(ArraySegment<(Of <<'(Byte>)>>), ArraySegment<(Of <<'(Byte>)>>), X509Certificate2) |
Decrypts the buffer using asymmetric encryption.
| |
| Decrypt(TcpChannelToken, ArraySegment<(Of <<'(Byte>)>>), Boolean) |
Decrypts the data in a buffer using symmetric encryption.
| |
| DiscardTokens |
Discards the tokens.
| |
| Dispose()()()() |
Frees any unmanaged resources.
| |
| Dispose(Boolean) |
An overrideable version of the Dispose.
| |
| Encrypt(ArraySegment<(Of <<'(Byte>)>>), ArraySegment<(Of <<'(Byte>)>>), X509Certificate2) |
Encrypts the buffer using asymmetric encryption.
| |
| Encrypt(TcpChannelToken, ArraySegment<(Of <<'(Byte>)>>), Boolean) |
Decrypts the data in a buffer using symmetric encryption.
| |
| Equals | (Inherited from Object.) | |
| Finalize |
The finializer implementation.
(Overrides Object..::..Finalize()()()().) | |
| GetAsymmetricHeaderSize |
Calculates the size of the asymmetric security header.
| |
| GetAsymmetricSignatureSize |
Calculates the size of the footer with an asymmetric signature.
| |
| GetCipherTextBlockSize |
Returns the cipher text block size for key in the specified certificate.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetNewSequenceNumber |
Returns a new sequence number.
| |
| GetNonceLength |
Returns the length of the symmetric encryption key.
| |
| GetPlainTextBlockSize |
Returns the plain text block size for key in the specified certificate.
| |
| GetSavedChunks |
Returns the chunks saved for message.
| |
| GetThumbprintBytes |
Returns the thumbprint as a uppercase string.
| |
| GetThumbprintString |
Returns the thumbprint as a uppercase string.
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| HandleIncomingMessage |
Processes an incoming message.
| |
| HandleMessageProcessingError(ServiceResult) |
Handles an error parsing or verifying a message.
| |
| HandleMessageProcessingError(UInt32, String, array<Object>[]()[][]) |
Handles an error parsing or verifying a message.
| |
| HandleMessageProcessingError(Exception, UInt32, String, array<Object>[]()[][]) |
Handles an error parsing or verifying a message.
| |
| HandleSocketError |
Handles a socket error.
| |
| HandleWriteComplete |
Called after a write operation completes.
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| MessageLimitsExceeded |
Checks if the message limits have been exceeded.
| |
| OnMessageReceived |
Processes an incoming message.
| |
| OnReceiveError |
Handles a receive error.
| |
| OnWriteComplete |
Handles a write complete event.
| |
| ReadAsymmetricMessage |
Processes an OpenSecureChannel request message.
| |
| ReadAsymmetricMessageHeader |
Reads the asymmetric security header to the buffer.
| |
| ReadErrorMessageBody |
Reads an error from a stream.
| |
| ReadSymmetricMessage |
Decrypts and verifies a message chunk.
| |
| ResetSequenceNumber |
Resets the sequence number after a connect.
| |
| ReviseSecurityMode |
Checks if it is possible to revise the security mode.
| |
| Rsa_GetCipherTextBlockSize |
Return the ciphertext block size for RSA OAEP encryption.
| |
| Rsa_GetPlainTextBlockSize |
Return the plaintext block size for RSA OAEP encryption.
| |
| SaveIntermediateChunk |
Saves an intermediate chunk for an incoming message.
| |
| SetEndpointUrl |
Sets to endpoint according to the endpoint url.
| |
| SetStateChangedCallback |
Raised when the state of the channel changes.
| |
| Sign(ArraySegment<(Of <<'(Byte>)>>), X509Certificate2) |
Adds an asymmetric signature to the end of the buffer.
| |
| Sign(TcpChannelToken, ArraySegment<(Of <<'(Byte>)>>), Boolean) |
Returns the symmetric signature for the data.
| |
| ToString | (Inherited from Object.) | |
| UpdateMessageSize |
Updates the message size stored in the message header.
| |
| UpdateMessageType |
Updates the message type stored in the message header.
| |
| ValidateNonce |
Validates the nonce.
| |
| Verify(ArraySegment<(Of <<'(Byte>)>>), array<Byte>[]()[][], X509Certificate2) |
Verifies an asymmetric signature at the end of the buffer.
| |
| Verify(TcpChannelToken, array<Byte>[]()[][], ArraySegment<(Of <<'(Byte>)>>), Boolean) |
Returns the symmetric signature for the data.
| |
| VerifySequenceNumber |
Checks if the sequence number is valid.
| |
| WriteAsymmetricMessage |
Sends a OpenSecureChannel response.
| |
| WriteAsymmetricMessageHeader |
Writes the asymmetric security header to the buffer.
| |
| WriteErrorMessageBody |
Writes an error to a stream.
| |
| WriteSymmetricMessage |
Secures the message using the security token.
|
Properties
| Name | Description | |
|---|---|---|
| BufferManager |
The buffer manager for the channel.
| |
| ChannelId |
The identifier assigned to the channel by the server.
| |
| ClientCertificate |
The certificate for the client.
| |
| CurrentToken |
Returns the current security token.
| |
| DataLock |
The synchronization object for the channel.
| |
| DiscoveryOnly |
Whether the channel is restricted to discovery operations.
| |
| EndpointDescription |
Returns the endpoint description selected by the client.
| |
| GlobalChannelId |
The globally unique identifier assigned to the channel by the server.
| |
| Id |
The identifier assigned to the channel by the server.
| |
| MaxRequestChunkCount |
The maximum number of chunks per request message.
| |
| MaxRequestMessageSize |
The maximum size for a request message.
| |
| MaxResponseChunkCount |
The maximum number of chunks per response message.
| |
| MaxResponseMessageSize |
The maximum size for a response message.
| |
| PreviousToken |
Returns the current security token.
| |
| Quotas |
The resource quotas for the channel.
| |
| ReceiveBufferSize |
The size of the receive buffer.
| |
| SecurityMode |
The security mode used with the channel.
| |
| SecurityPolicyUri |
The security policy used with the channel.
| |
| SendBufferSize |
The size of the send buffer.
| |
| ServerCertificate |
The certificate for the server.
| |
| Socket |
The socket for the channel.
| |
| State |
The state of the channel.
|