Class SspiUtil.ManagedSecBufferDesc

  • Enclosing class:
    SspiUtil

    public static class SspiUtil.ManagedSecBufferDesc
    extends Sspi.SecBufferDesc
    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.

    • Constructor Detail

      • ManagedSecBufferDesc

        public ManagedSecBufferDesc​(int type,
                                    byte[] token)
        Create a new SecBufferDesc with initial data.
        Parameters:
        type - Token type.
        token - Initial token data.
      • ManagedSecBufferDesc

        public ManagedSecBufferDesc​(int type,
                                    int tokenSize)
        Create a new SecBufferDesc with one SecBuffer of a given type and size.
        Parameters:
        type - type
        tokenSize - token size
      • ManagedSecBufferDesc

        public ManagedSecBufferDesc​(int bufferCount)
    • Method Detail

      • write

        public void write()
        Description copied from class: Structure
        Writes the fields of the struct to native memory
        Overrides:
        write in class Structure
      • read

        public void read()
        Description copied from class: Structure
        Reads the fields of the struct from native memory
        Overrides:
        read in class Structure