Top Fields Methods
org.postgresql.sspi

pack-priv Interface NTDSAPI

extends StdCallLibrary
Imports
com.sun.jna.LastErrorException, .Native, .WString, com.sun.jna.ptr.IntByReference, com.sun.jna.win32.StdCallLibrary, org.checkerframework.checker.nullness.qual.Nullable

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final NTDSAPI
Inherited from com.sun.jna.win32.StdCallLibrary:
FUNCTION_MAPPERSTDCALL_CONVENTION

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

Error code ERROR_SUCCESS, ERROR_BUFFER_OVERFLOW or ERROR_INVALID_PARAMETER
DsMakeSpnW
(WString
SPN service class (in)
serviceClass
,
WString
SPN service name (in)
serviceName
,
@Nullable WString
SPN instance name (in, null ok)
instanceName
,
short
SPN port number (in, 0 to omit)
instancePort
,
@Nullable WString
SPN referer (in, null ok)
referrer
,
IntByReference
Size of 'spn' buffer (in), actual length of spn created including null terminator (out)
spnLength
,
char[]
SPN buffer (in/out)
spn
)

Wrap DsMakeSpn

To get the String result, call

new String(buf, 0, spnLength)

Field Detail

ERROR_BUFFER_OVERFLOWback to summary
public static final int ERROR_BUFFER_OVERFLOW
ERROR_INVALID_PARAMETERback to summary
public static final int ERROR_INVALID_PARAMETER
ERROR_SUCCESSback to summary
public static final int ERROR_SUCCESS
instanceback to summary
public static final NTDSAPI instance

Method Detail

DsMakeSpnWback to summary
public int DsMakeSpnW(WString serviceClass, WString serviceName, @Nullable WString instanceName, short instancePort, @Nullable WString referrer, IntByReference spnLength, char[] spn) throws LastErrorException

Wrap DsMakeSpn

To get the String result, call

new String(buf, 0, spnLength)
on the byte[] buffer passed to 'spn' after testing to ensure ERROR_SUCCESS.

Parameters
serviceClass:WString

SPN service class (in)

serviceName:WString

SPN service name (in)

instanceName:@Nullable WString

SPN instance name (in, null ok)

instancePort:short

SPN port number (in, 0 to omit)

referrer:@Nullable WString

SPN referer (in, null ok)

spnLength:IntByReference

Size of 'spn' buffer (in), actual length of spn created including null terminator (out)

spn:char[]

SPN buffer (in/out)

Returns:int

Error code ERROR_SUCCESS, ERROR_BUFFER_OVERFLOW or ERROR_INVALID_PARAMETER

See Also
https://msdn.microsoft.com/en-us/library/ms676007(v=vs.85).aspx