Class: IOSConfigProfile::EnrollmentPayload
- Inherits:
-
Array
- Object
- Array
- IOSConfigProfile::EnrollmentPayload
- Includes:
- BasicPayload
- Defined in:
- lib/ios_config_profile/device/enrollment_payload.rb
Instance Attribute Summary collapse
-
#identity_cert ⇒ Object
readonly
Returns the value of attribute identity_cert.
-
#identity_cert_password ⇒ Object
readonly
Returns the value of attribute identity_cert_password.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, topic, identity_cert, identity_cert_password) ⇒ EnrollmentPayload
constructor
A new instance of EnrollmentPayload.
- #mdm_payload ⇒ Object
- #security_payload ⇒ Object
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_cert ⇒ Object (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_password ⇒ Object (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 |
#topic ⇒ Object (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 |
#url ⇒ Object (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_payload ⇒ Object
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_payload ⇒ Object
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 |