Exception: Rex::Proto::Kerberos::Model::Error::KerberosEncryptionNotSupported

Inherits:
KerberosError
  • Object
show all
Defined in:
lib/rex/proto/kerberos/model/error.rb

Overview

Runtime Error which can be raised by the Rex::Proto::Kerberos API when the Kerberos target does not support the chosen Encryption method

Instance Attribute Summary collapse

Attributes inherited from KerberosError

#error_code, #res

Instance Method Summary collapse

Methods inherited from KerberosError

#message_for

Constructor Details

#initialize(message = nil, encryption_type: nil) ⇒ KerberosEncryptionNotSupported

Returns a new instance of KerberosEncryptionNotSupported.



193
194
195
# File 'lib/rex/proto/kerberos/model/error.rb', line 193

def initialize(message = nil, encryption_type: nil)
  super(message || "Kerberos target does not support the required encryption")
end

Instance Attribute Details

#encryption_typeNumber (readonly)

Returns One of the encryption types defined within Rex::Proto::Kerberos::Crypto.

Returns:

  • (Number)

    One of the encryption types defined within Rex::Proto::Kerberos::Crypto



191
192
193
# File 'lib/rex/proto/kerberos/model/error.rb', line 191

def encryption_type
  @encryption_type
end