Build 1.01.318.0

[This is preliminary documentation and is subject to change.]

The TcpChannel type exposes the following members.

Constructors

  NameDescription
Public methodTcpChannel
Attaches the object to an existing socket.

Methods

  NameDescription
Protected methodActivateToken
Activates a new token.
Protected methodBeginWriteMessage(ArraySegment<(Of <<'(Byte>)>>), Int32, Object)
Queues a write request.
Protected methodBeginWriteMessage(BufferCollection, Int32, Object)
Queues a write request.
Protected methodCalculateSymmetricKeySizes
Calculates the symmetric key sizes based on the current security policy.
Protected methodChannelStateChanged
Reports that the channel state has changed (in another thread).
Protected methodStatic memberCompareCertificates
Compares two certificates.
Protected methodComputeKeys
Computes the keys for a token.
Protected methodCreateNonce
Creates a new nonce.
Protected methodCreateToken
Creates a new token.
Protected methodDecrypt(ArraySegment<(Of <<'(Byte>)>>), ArraySegment<(Of <<'(Byte>)>>), X509Certificate2)
Decrypts the buffer using asymmetric encryption.
Protected methodDecrypt(TcpChannelToken, ArraySegment<(Of <<'(Byte>)>>), Boolean)
Decrypts the data in a buffer using symmetric encryption.
Protected methodDiscardTokens
Discards the tokens.
Public methodDispose()()()()
Frees any unmanaged resources.
Protected methodDispose(Boolean)
An overrideable version of the Dispose.
Protected methodEncrypt(ArraySegment<(Of <<'(Byte>)>>), ArraySegment<(Of <<'(Byte>)>>), X509Certificate2)
Encrypts the buffer using asymmetric encryption.
Protected methodEncrypt(TcpChannelToken, ArraySegment<(Of <<'(Byte>)>>), Boolean)
Decrypts the data in a buffer using symmetric encryption.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
The finializer implementation.
(Overrides Object..::..Finalize()()()().)
Protected methodGetAsymmetricHeaderSize
Calculates the size of the asymmetric security header.
Protected methodGetAsymmetricSignatureSize
Calculates the size of the footer with an asymmetric signature.
Protected methodGetCipherTextBlockSize
Returns the cipher text block size for key in the specified certificate.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetNewSequenceNumber
Returns a new sequence number.
Protected methodGetNonceLength
Returns the length of the symmetric encryption key.
Protected methodGetPlainTextBlockSize
Returns the plain text block size for key in the specified certificate.
Protected methodGetSavedChunks
Returns the chunks saved for message.
Protected methodStatic memberGetThumbprintBytes
Returns the thumbprint as a uppercase string.
Protected methodStatic memberGetThumbprintString
Returns the thumbprint as a uppercase string.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleIncomingMessage
Processes an incoming message.
Protected methodHandleMessageProcessingError(ServiceResult)
Handles an error parsing or verifying a message.
Protected methodHandleMessageProcessingError(UInt32, String, array<Object>[]()[][])
Handles an error parsing or verifying a message.
Protected methodHandleMessageProcessingError(Exception, UInt32, String, array<Object>[]()[][])
Handles an error parsing or verifying a message.
Protected methodHandleSocketError
Handles a socket error.
Protected methodHandleWriteComplete
Called after a write operation completes.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMessageLimitsExceeded
Checks if the message limits have been exceeded.
Public methodOnMessageReceived
Processes an incoming message.
Public methodOnReceiveError
Handles a receive error.
Protected methodOnWriteComplete
Handles a write complete event.
Protected methodReadAsymmetricMessage
Processes an OpenSecureChannel request message.
Protected methodReadAsymmetricMessageHeader
Reads the asymmetric security header to the buffer.
Protected methodStatic memberReadErrorMessageBody
Reads an error from a stream.
Protected methodReadSymmetricMessage
Decrypts and verifies a message chunk.
Protected methodResetSequenceNumber
Resets the sequence number after a connect.
Protected methodReviseSecurityMode
Checks if it is possible to revise the security mode.
Protected methodStatic memberRsa_GetCipherTextBlockSize
Return the ciphertext block size for RSA OAEP encryption.
Protected methodStatic memberRsa_GetPlainTextBlockSize
Return the plaintext block size for RSA OAEP encryption.
Protected methodSaveIntermediateChunk
Saves an intermediate chunk for an incoming message.
Protected methodSetEndpointUrl
Sets to endpoint according to the endpoint url.
Public methodSetStateChangedCallback
Raised when the state of the channel changes.
Protected methodSign(ArraySegment<(Of <<'(Byte>)>>), X509Certificate2)
Adds an asymmetric signature to the end of the buffer.
Protected methodSign(TcpChannelToken, ArraySegment<(Of <<'(Byte>)>>), Boolean)
Returns the symmetric signature for the data.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Protected methodStatic memberUpdateMessageSize
Updates the message size stored in the message header.
Protected methodStatic memberUpdateMessageType
Updates the message type stored in the message header.
Protected methodValidateNonce
Validates the nonce.
Protected methodVerify(ArraySegment<(Of <<'(Byte>)>>), array<Byte>[]()[][], X509Certificate2)
Verifies an asymmetric signature at the end of the buffer.
Protected methodVerify(TcpChannelToken, array<Byte>[]()[][], ArraySegment<(Of <<'(Byte>)>>), Boolean)
Returns the symmetric signature for the data.
Protected methodVerifySequenceNumber
Checks if the sequence number is valid.
Protected methodWriteAsymmetricMessage
Sends a OpenSecureChannel response.
Protected methodWriteAsymmetricMessageHeader
Writes the asymmetric security header to the buffer.
Protected methodStatic memberWriteErrorMessageBody
Writes an error to a stream.
Protected methodWriteSymmetricMessage
Secures the message using the security token.

Properties

  NameDescription
Protected propertyBufferManager
The buffer manager for the channel.
Protected propertyChannelId
The identifier assigned to the channel by the server.
Protected propertyClientCertificate
The certificate for the client.
Protected propertyCurrentToken
Returns the current security token.
Protected propertyDataLock
The synchronization object for the channel.
Protected propertyDiscoveryOnly
Whether the channel is restricted to discovery operations.
Public propertyEndpointDescription
Returns the endpoint description selected by the client.
Public propertyGlobalChannelId
The globally unique identifier assigned to the channel by the server.
Public propertyId
The identifier assigned to the channel by the server.
Protected propertyMaxRequestChunkCount
The maximum number of chunks per request message.
Protected propertyMaxRequestMessageSize
The maximum size for a request message.
Protected propertyMaxResponseChunkCount
The maximum number of chunks per response message.
Protected propertyMaxResponseMessageSize
The maximum size for a response message.
Protected propertyPreviousToken
Returns the current security token.
Protected propertyQuotas
The resource quotas for the channel.
Protected propertyReceiveBufferSize
The size of the receive buffer.
Protected propertySecurityMode
The security mode used with the channel.
Protected propertySecurityPolicyUri
The security policy used with the channel.
Protected propertySendBufferSize
The size of the send buffer.
Protected propertyServerCertificate
The certificate for the server.
Protected propertySocket
The socket for the channel.
Protected propertyState
The state of the channel.

See Also