class IOSConfigProfile::DEPPayload
Attributes
identity_cert[R]
identity_cert_password[R]
topic[R]
url[R]
Public Class Methods
new(url, topic, identity_cert, identity_cert_password)
click to toggle source
# File lib/ios_config_profile/device/dep_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 merge! dep_payload end
Private Instance Methods
dep_payload()
click to toggle source
# File lib/ios_config_profile/device/dep_payload.rb, line 18 def dep_payload { "PayloadContent" => [mdm_payload, security_payload], "PayloadDescription" => "#{IOSConfigProfile.organization} MDM Enrollment Profile", "PayloadDisplayName" => "#{IOSConfigProfile.organization} MDM Enrollment Profile", "PayloadIdentifier" => "#{IOSConfigProfile.root_domain}.mdm.enrollment.profile", "PayloadOrganization" => IOSConfigProfile.organization, "PayloadRemovalDisallowed" => false, "PayloadType" => "Configuration", "PayloadUUID" => uuid, "PayloadVersion" => 1, } end
mdm_payload()
click to toggle source
# File lib/ios_config_profile/device/dep_payload.rb, line 32 def mdm_payload @mdm_payload ||= IOSConfigProfile::MDMPayload.new(url, security_payload, topic) end
security_payload()
click to toggle source
# File lib/ios_config_profile/device/dep_payload.rb, line 36 def security_payload @security_payload ||= IOSConfigProfile::SecurityPayload.new(identity_cert, identity_cert_password) end