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.

  • Field Details

    • sUserName

      public 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.
  • Constructor Details

    • SecPkgCredentials_Names

      public SecPkgCredentials_Names()
  • Method Details

    • getUserName

      public String getUserName()
      Returns:
      value of userName attribute
    • free

      public int free()
      Free native buffer
      Returns:
      WinError.SEC_E_OK if ok