C# Class Dse.Auth.Sspi.Buffers.SecureBuffer

Stores buffers to provide tokens and data to the native SSPI APIs.
The buffer is translated into a SecureBufferInternal for the actual call. To keep the call setup code simple, and to centralize the buffer pinning code, this class stores and returns buffers as regular byte arrays. The buffer pinning support code in SecureBufferAdapter handles conversion to SecureBufferInternal for pass to the managed api, as well as pinning relevant chunks of memory. Furthermore, the native API may not use the entire buffer, and so a mechanism is needed to communicate the usage of the buffer separate from the length of the buffer.
Show file Open project: datastax/csharp-driver-dse Class Usage Examples

Public Methods

Method Description
SecureBuffer ( byte buffer, BufferType type ) : System

Initializes a new instance of the SecureBuffer class.

Method Details

SecureBuffer() public method

Initializes a new instance of the SecureBuffer class.
public SecureBuffer ( byte buffer, BufferType type ) : System
buffer byte The buffer to wrap.
type BufferType The type or purpose of the buffer, for purposes of /// invoking the native API.
return System