IGSSMechanism.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. namespace SMBLibrary.Authentication.GSSAPI
  10. {
  11. public interface IGSSMechanism
  12. {
  13. /// <summary>
  14. /// Equivalent to GSS_Accept_sec_context
  15. /// </summary>
  16. NTStatus AcceptSecurityContext(ref object context, byte[] inputToken, out byte[] outputToken);
  17. /// <summary>
  18. /// Equivalent to GSS_Delete_sec_context
  19. /// </summary>
  20. bool DeleteSecurityContext(ref object context);
  21. /// <summary>
  22. /// Equivalent to GSS_Inquire_context
  23. /// Obtains information about a given security context (even an incomplete one)
  24. /// </summary>
  25. object GetContextAttribute(object context, GSSAttributeName attributeName);
  26. byte[] Identifier
  27. {
  28. get;
  29. }
  30. }
  31. }