Class: Rex::Proto::Kerberos::Model::LastRequest
- Defined in:
- lib/rex/proto/kerberos/model/last_request.rb
Overview
This class provides a representation of request time
Constant Summary
Constants included from Rex::Proto::Kerberos::Model
AP_REP, AP_REQ, AS_REP, AS_REQ, AUTHENTICATOR, ENC_AP_REP_PART, ENC_KRB_CRED_PART, KRB_CRED, KRB_ERROR, TGS_REP, TGS_REQ, TICKET, VERSION
Instance Attribute Summary collapse
-
#type ⇒ Integer
The type of value.
-
#value ⇒ Time
The time of the last request.
Instance Method Summary collapse
-
#decode(input) ⇒ self
Decodes a Rex::Proto::Kerberos::Model::LastRequest.
-
#encode ⇒ Object
Rex::Proto::Kerberos::Model::LastRequest encoding isn’t supported.
Methods inherited from Element
attr_accessor, attributes, #attributes, decode, #initialize
Constructor Details
This class inherits a constructor from Rex::Proto::Kerberos::Model::Element
Instance Attribute Details
#type ⇒ Integer
Returns The type of value.
12 13 14 |
# File 'lib/rex/proto/kerberos/model/last_request.rb', line 12 def type @type end |
#value ⇒ Time
Returns the time of the last request.
15 16 17 |
# File 'lib/rex/proto/kerberos/model/last_request.rb', line 15 def value @value end |
Instance Method Details
#decode(input) ⇒ self
Decodes a Rex::Proto::Kerberos::Model::LastRequest
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/rex/proto/kerberos/model/last_request.rb', line 22 def decode(input) case input when String decode_string(input) when OpenSSL::ASN1::Sequence decode_asn1(input) else raise ::Rex::Proto::Kerberos::Model::Error::KerberosDecodingError, 'Failed to decode LastRequest, invalid input' end self end |
#encode ⇒ Object
Rex::Proto::Kerberos::Model::LastRequest encoding isn’t supported
38 39 40 |
# File 'lib/rex/proto/kerberos/model/last_request.rb', line 38 def encode raise ::NotImplementedError, 'LastRequest encoding not supported' end |