Class: Buby::Cookie

Inherits:
CGI::Cookie
  • Object
show all
Includes:
Java::Burp::ICookie
Defined in:
lib/buby/cookie.rb

Overview

This class is used to hold details about an HTTP cookie. Implements the burp.ICookie interface

Instance Method Summary collapse

Instance Method Details

#getDomainString

This method is used to retrieve the domain for which the cookie is in scope.

Returns:

  • (String)

    The domain for which the cookie is in scope.



14
15
16
# File 'lib/buby/cookie.rb', line 14

def getDomain
  @domain
end

#getExpirationjava.util.Date

This method is used to retrieve the expiration time for the cookie.

Returns:

  • (java.util.Date)

    The expiration time for the cookie, or nil if none is set (i.e., for non-persistent session cookies).



23
# File 'lib/buby/cookie.rb', line 23

def getExpiration; @expires; end

#getNameString

This method is used to retrieve the name of the cookie.

Returns:

  • (String)

    The name of the cookie.



29
# File 'lib/buby/cookie.rb', line 29

def getName; @name; end

#getValueString

This method is used to retrieve the value of the cookie.

Returns:

  • (String)

    The value of the cookie.



35
# File 'lib/buby/cookie.rb', line 35

def getValue; join("&"); end