Class: IOSConfigProfile::EnrollmentPayload

Inherits:
Array
  • Object
show all
Includes:
BasicPayload
Defined in:
lib/ios_config_profile/device/enrollment_payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BasicPayload

#to_command_payload, #to_encrypted_payload, #uuid

Constructor Details

#initialize(url, topic, identity_cert, identity_cert_password) ⇒ EnrollmentPayload

Returns a new instance of EnrollmentPayload.



7
8
9
10
11
12
13
14
15
# File 'lib/ios_config_profile/device/enrollment_payload.rb', line 7

def initialize(url, topic, identity_cert, identity_cert_password)
  @url = url
  @topic = topic
  @identity_cert = identity_cert
  @identity_cert_password = identity_cert_password
  require_attributes :url, :topic, :identity_cert, :identity_cert_password
  push security_payload
  push mdm_payload
end

Instance Attribute Details

#identity_certObject (readonly)

Returns the value of attribute identity_cert.



5
6
7
# File 'lib/ios_config_profile/device/enrollment_payload.rb', line 5

def identity_cert
  @identity_cert
end

#identity_cert_passwordObject (readonly)

Returns the value of attribute identity_cert_password.



5
6
7
# File 'lib/ios_config_profile/device/enrollment_payload.rb', line 5

def identity_cert_password
  @identity_cert_password
end

#topicObject (readonly)

Returns the value of attribute topic.



5
6
7
# File 'lib/ios_config_profile/device/enrollment_payload.rb', line 5

def topic
  @topic
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/ios_config_profile/device/enrollment_payload.rb', line 5

def url
  @url
end

Instance Method Details

#mdm_payloadObject



17
18
19
# File 'lib/ios_config_profile/device/enrollment_payload.rb', line 17

def mdm_payload
  @mdm_payload ||= IOSConfigProfile::MDMPayload.new(url, security_payload, topic)
end

#security_payloadObject



21
22
23
# File 'lib/ios_config_profile/device/enrollment_payload.rb', line 21

def security_payload
  @security_payload ||= IOSConfigProfile::SecurityPayload.new(identity_cert, identity_cert_password)
end