Class: RubySMB::Gss::SpnegoNegTokenTarg

Inherits:
RASN1::Model
  • Object
show all
Defined in:
lib/ruby_smb/gss/spnego_neg_token_targ.rb

Overview

The SPNEGO negotiation token exchanged after the first, carrying a continuation of the selected mechanism. A client sends one to continue an exchange, so it is where a mechanism token arrives on any leg past the first.

https://www.rfc-editor.org/rfc/rfc2478

Constant Summary collapse

NEG_RESULTS =
{ 'accept-completed' => 0,
'accept-incomplete' => 1,
'reject' => 2,
'request-mic' => 3 }.freeze

Instance Method Summary collapse

Instance Method Details

#response_token ⇒ String?

Returns the mechanism token the continuation carried, or nil if it carried none.

Returns:

  • (String, nil) —

    the mechanism token the continuation carried, or nil if it carried none.



22
23
24
# File 'lib/ruby_smb/gss/spnego_neg_token_targ.rb', line 22

def response_token
  self[:response_token].value
end