Top Description Inners Constructors Methods
com.sun.jna.platform.win32

public Class SspiUtil

extends Object
Class Inheritance

Utility classes and methods for Sspi

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
SspiUtil.ManagedSecBufferDesc

The SecBufferDesc structure describes an array of SecBuffer structures to pass from a transport application to a security package.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SspiUtilback to summary
public SspiUtil()
com.sun.jna.platform.win32 back to summary

public Class SspiUtil.ManagedSecBufferDesc

extends SecBufferDesc
Class Inheritance

The SecBufferDesc structure describes an array of SecBuffer structures to pass from a transport application to a security package.

ManagedSecBufferDesc is a convenience binding, that makes dealing with SecBufferDesc easier by providing direct, bound access, to the contained SecBuffers.

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.

Field Summary

Modifier and TypeField and Description
private final Sspi.SecBuffer[]
Inherited from com.sun.jna.platform.win32.Sspi.SecBufferDesc:
cBufferspBuffersulVersion

Constructor Summary

AccessConstructor and Description
public
ManagedSecBufferDesc(int
Token type.
type
,
byte[]
Initial token data.
token
)

Create a new SecBufferDesc with initial data.

public
ManagedSecBufferDesc(int
type
type
,
int
token size
tokenSize
)

Create a new SecBufferDesc with one SecBuffer of a given type and size.

public
ManagedSecBufferDesc(int bufferCount)

Method Summary

Modifier and TypeMethod and Description
public Sspi.SecBuffer
getBuffer(int idx)

public void
read()

Overrides com.sun.jna.Structure.read.

Reads the fields of the struct from native memory
public void
write()

Overrides com.sun.jna.Structure.write.

Writes the fields of the struct to native memory

Field Detail

secBuffersback to summary
private final Sspi.SecBuffer[] secBuffers

Constructor Detail

ManagedSecBufferDescback to summary
public ManagedSecBufferDesc(int type, byte[] token)

Create a new SecBufferDesc with initial data.

Parameters
type:int

Token type.

token:byte[]

Initial token data.

ManagedSecBufferDescback to summary
public ManagedSecBufferDesc(int type, int tokenSize)

Create a new SecBufferDesc with one SecBuffer of a given type and size.

Parameters
type:int

type

tokenSize:int

token size

ManagedSecBufferDescback to summary
public ManagedSecBufferDesc(int bufferCount)

Method Detail

getBufferback to summary
public Sspi.SecBuffer getBuffer(int idx)
readback to summary
public void read()

Overrides com.sun.jna.Structure.read.

Doc from com.sun.jna.Structure.read.

Reads the fields of the struct from native memory

Annotations
@Override
writeback to summary
public void write()

Overrides com.sun.jna.Structure.write.

Doc from com.sun.jna.Structure.write.

Writes the fields of the struct to native memory

Annotations
@Override