Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRsaTokenKey

Inherits:
ContentKeyPolicyRestrictionTokenKey show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb

Overview

Specifies a RSA key for token validation

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContentKeyPolicyRsaTokenKey

Returns a new instance of ContentKeyPolicyRsaTokenKey.



16
17
18
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb', line 16

def initialize
  @odatatype = "#Microsoft.Media.ContentKeyPolicyRsaTokenKey"
end

Instance Attribute Details

#exponentArray<Integer>

Returns The RSA Parameter exponent.

Returns:

  • (Array<Integer>)

    The RSA Parameter exponent



23
24
25
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb', line 23

def exponent
  @exponent
end

#modulusArray<Integer>

Returns The RSA Parameter modulus.

Returns:

  • (Array<Integer>)

    The RSA Parameter modulus



26
27
28
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb', line 26

def modulus
  @modulus
end

#odatatypeObject

Returns the value of attribute odatatype.



20
21
22
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb', line 20

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

Mapper for ContentKeyPolicyRsaTokenKey class as Ruby Hash. This will be used for serialization/deserialization.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.ContentKeyPolicyRsaTokenKey',
    type: {
      name: 'Composite',
      class_name: 'ContentKeyPolicyRsaTokenKey',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        },
        exponent: {
          client_side_validation: true,
          required: true,
          serialized_name: 'exponent',
          type: {
            name: 'ByteArray'
          }
        },
        modulus: {
          client_side_validation: true,
          required: true,
          serialized_name: 'modulus',
          type: {
            name: 'ByteArray'
          }
        }
      }
    }
  }
end