Package com.sun.jna.platform.win32
Class Sspi.SecPkgCredentials_Names
- java.lang.Object
- 
- com.sun.jna.Structure
- 
- com.sun.jna.platform.win32.Sspi.SecPkgCredentials_Names
 
 
- 
- Direct Known Subclasses:
- Sspi.SecPkgCredentials_Names.ByReference
 - Enclosing interface:
- Sspi
 
 @FieldOrder("sUserName") public static class Sspi.SecPkgCredentials_Names extends Structure The SecPkgCredentials_Names structure holds the name of the user associated with a context.The Secur32.QueryCredentialsAttributes(com.sun.jna.platform.win32.Sspi.CredHandle, int, com.sun.jna.Structure)function uses this structure.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSspi.SecPkgCredentials_Names.ByReference- 
Nested classes/interfaces inherited from class com.sun.jna.StructureStructure.ByValue, Structure.FieldOrder, Structure.StructField
 
- 
 - 
Field SummaryFields Modifier and Type Field Description PointersUserNamePointer to a null-terminated string containing the name of the user represented by the credential.- 
Fields inherited from class com.sun.jna.StructureALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description SecPkgCredentials_Names()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intfree()Free native bufferjava.lang.StringgetUserName()- 
Methods inherited from class com.sun.jna.StructureallocateMemory, 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, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
 
- 
 
- 
- 
- 
Field Detail- 
sUserNamepublic Pointer sUserName Pointer to a null-terminated string containing the name of the user represented by the credential. If the security package sets the SECPKG_FLAG_ACCEPT_WIN32_NAME flag to indicate that it can process Windows names, this name can be used in other Windows calls.
 
- 
 - 
Method Detail- 
getUserNamepublic java.lang.String getUserName() - Returns:
- value of userName attribute
 
 - 
freepublic int free() Free native buffer- Returns:
- WinError.SEC_E_OKif ok
 
 
- 
 
-