public static class SspiUtil.ManagedSecBufferDesc extends Sspi.SecBufferDesc
ManagedSecBufferDesc is a convenience binding, that makes dealing with
SecBufferDesc
easier by providing direct, bound access, to the contained
SecBuffer
s.
ManagedSecBufferDesc assumes, that the size (entry count) of the SecBufferDesc is known at construction time. It is assumed, that this covers all relevant use-cases.
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
cBuffers, pBuffers, ulVersion
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor and Description |
---|
ManagedSecBufferDesc(int bufferCount) |
ManagedSecBufferDesc(int type,
byte[] token)
Create a new SecBufferDesc with initial data.
|
ManagedSecBufferDesc(int type,
int tokenSize)
Create a new SecBufferDesc with one SecBuffer of a given type and size.
|
Modifier and Type | Method and Description |
---|---|
Sspi.SecBuffer |
getBuffer(int idx) |
void |
read()
Reads the fields of the struct from native memory
|
void |
write()
Writes the fields of the struct to native memory
|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, writeField, writeField, writeField
public ManagedSecBufferDesc(int type, byte[] token)
type
- Token type.token
- Initial token data.public ManagedSecBufferDesc(int type, int tokenSize)
type
- typetokenSize
- token sizepublic ManagedSecBufferDesc(int bufferCount)
public Sspi.SecBuffer getBuffer(int idx)
public void write()
Structure