Class: Nexpose::MobileDiscoveryConnection

Inherits:
DiscoveryConnection show all
Defined in:
lib/nexpose/discovery.rb

Instance Attribute Summary

Attributes inherited from DiscoveryConnection

#address, #collection_method, #engine_id, #event_source, #exchange_hostname, #exchange_password, #exchange_username, #id, #name, #password, #port, #protocol, #status, #type, #user

Instance Method Summary collapse

Methods inherited from DiscoveryConnection

#==, #as_xml, #connect, #create, #delete, #discover, #eql?, parse, #save, #to_h, #to_json, #to_xml, #update

Methods included from XMLUtils

#make_xml, #parse_xml, success?

Methods inherited from APIObject

#object_from_hash

Constructor Details

#initialize(name, protocol, address, user, password = nil) ⇒ MobileDiscoveryConnection

Create a new Mobile discovery connection.

Parameters:

  • name (String)

    Name to assign to this connection.

  • protocol (DiscoveryConnection::Protocol)

    The protocol to use for discovery - LDAPS or LDAP

  • address (String)

    IP or fully qualified domain name of the connection server.

  • user (String)

    User name for credentials on this connection.

  • password (String) (defaults to: nil)

    Password for credentials on this connection.



327
328
329
330
331
332
333
334
335
336
# File 'lib/nexpose/discovery.rb', line 327

def initialize(name, protocol, address, user, password = nil)
  @name     = name
  @protocol = protocol
  @address  = address
  @user     = user
  @password = password
  @type     = Type::ACTIVESYNC
  @id       = -1
  @port     = 443 # port not used for mobile connection
end