Class: OCI::IdentityDomains::Models::AppExtensionKerberosRealmApp

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb

Overview

Kerberos Realm

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AppExtensionKerberosRealmApp

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 146

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.realm_name = attributes[:'realmName'] if attributes[:'realmName']

  raise 'You cannot provide both :realmName and :realm_name' if attributes.key?(:'realmName') && attributes.key?(:'realm_name')

  self.realm_name = attributes[:'realm_name'] if attributes[:'realm_name']

  self.master_key = attributes[:'masterKey'] if attributes[:'masterKey']

  raise 'You cannot provide both :masterKey and :master_key' if attributes.key?(:'masterKey') && attributes.key?(:'master_key')

  self.master_key = attributes[:'master_key'] if attributes[:'master_key']

  self.default_encryption_salt_type = attributes[:'defaultEncryptionSaltType'] if attributes[:'defaultEncryptionSaltType']

  raise 'You cannot provide both :defaultEncryptionSaltType and :default_encryption_salt_type' if attributes.key?(:'defaultEncryptionSaltType') && attributes.key?(:'default_encryption_salt_type')

  self.default_encryption_salt_type = attributes[:'default_encryption_salt_type'] if attributes[:'default_encryption_salt_type']

  self.supported_encryption_salt_types = attributes[:'supportedEncryptionSaltTypes'] if attributes[:'supportedEncryptionSaltTypes']

  raise 'You cannot provide both :supportedEncryptionSaltTypes and :supported_encryption_salt_types' if attributes.key?(:'supportedEncryptionSaltTypes') && attributes.key?(:'supported_encryption_salt_types')

  self.supported_encryption_salt_types = attributes[:'supported_encryption_salt_types'] if attributes[:'supported_encryption_salt_types']

  self.ticket_flags = attributes[:'ticketFlags'] if attributes[:'ticketFlags']

  raise 'You cannot provide both :ticketFlags and :ticket_flags' if attributes.key?(:'ticketFlags') && attributes.key?(:'ticket_flags')

  self.ticket_flags = attributes[:'ticket_flags'] if attributes[:'ticket_flags']

  self.max_ticket_life = attributes[:'maxTicketLife'] if attributes[:'maxTicketLife']

  raise 'You cannot provide both :maxTicketLife and :max_ticket_life' if attributes.key?(:'maxTicketLife') && attributes.key?(:'max_ticket_life')

  self.max_ticket_life = attributes[:'max_ticket_life'] if attributes[:'max_ticket_life']

  self.max_renewable_age = attributes[:'maxRenewableAge'] if attributes[:'maxRenewableAge']

  raise 'You cannot provide both :maxRenewableAge and :max_renewable_age' if attributes.key?(:'maxRenewableAge') && attributes.key?(:'max_renewable_age')

  self.max_renewable_age = attributes[:'max_renewable_age'] if attributes[:'max_renewable_age']
end

Instance Attribute Details

#default_encryption_salt_typeString

The type of salt that the system will use to encrypt Kerberos-specific artifacts of this App unless another type of salt is specified.

SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: request - type: string - uniqueness: none

Returns:

  • (String)


49
50
51
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 49

def default_encryption_salt_type
  @default_encryption_salt_type
end

#master_keyString

The primary key that the system should use to encrypt artifacts that are specific to this Kerberos realm – for example, to encrypt the Principal Key in each KerberosRealmUser.

SCIM++ Properties: - idcsSearchable: false - idcsSensitive: none - multiValued: false - mutability: readWrite - required: false - returned: request - type: string - uniqueness: none

Returns:

  • (String)


36
37
38
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 36

def master_key
  @master_key
end

#max_renewable_ageInteger

Max Renewable Age in seconds

SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: request - type: integer - uniqueness: none

Returns:

  • (Integer)


101
102
103
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 101

def max_renewable_age
  @max_renewable_age
end

#max_ticket_lifeInteger

Max Ticket Life in seconds

SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: request - type: integer - uniqueness: none

Returns:

  • (Integer)


88
89
90
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 88

def max_ticket_life
  @max_ticket_life
end

#realm_nameString

The name of the Kerberos Realm that this App uses for authentication.

SCIM++ Properties: - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: request - type: string - uniqueness: none

Returns:

  • (String)


22
23
24
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 22

def realm_name
  @realm_name
end

#supported_encryption_salt_typesArray<String>

The types of salt that are available for the system to use when encrypting Kerberos-specific artifacts for this App.

SCIM++ Properties: - idcsSearchable: false - multiValued: true - mutability: readWrite - required: false - returned: request - type: string - uniqueness: none

Returns:

  • (Array<String>)


62
63
64
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 62

def supported_encryption_salt_types
  @supported_encryption_salt_types
end

#ticket_flagsInteger

Ticket Flags

SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: request - type: integer - uniqueness: none

Returns:

  • (Integer)


75
76
77
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 75

def ticket_flags
  @ticket_flags
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 104

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'realm_name': :'realmName',
    'master_key': :'masterKey',
    'default_encryption_salt_type': :'defaultEncryptionSaltType',
    'supported_encryption_salt_types': :'supportedEncryptionSaltTypes',
    'ticket_flags': :'ticketFlags',
    'max_ticket_life': :'maxTicketLife',
    'max_renewable_age': :'maxRenewableAge'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 119

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'realm_name': :'String',
    'master_key': :'String',
    'default_encryption_salt_type': :'String',
    'supported_encryption_salt_types': :'Array<String>',
    'ticket_flags': :'Integer',
    'max_ticket_life': :'Integer',
    'max_renewable_age': :'Integer'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 202

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    realm_name == other.realm_name &&
    master_key == other.master_key &&
    default_encryption_salt_type == other.default_encryption_salt_type &&
    supported_encryption_salt_types == other.supported_encryption_salt_types &&
    ticket_flags == other.ticket_flags &&
    max_ticket_life == other.max_ticket_life &&
    max_renewable_age == other.max_renewable_age
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 238

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


218
219
220
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 218

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



227
228
229
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 227

def hash
  [realm_name, master_key, default_encryption_salt_type, supported_encryption_salt_types, ticket_flags, max_ticket_life, max_renewable_age].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



271
272
273
274
275
276
277
278
279
280
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 271

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



265
266
267
# File 'lib/oci/identity_domains/models/app_extension_kerberos_realm_app.rb', line 265

def to_s
  to_hash.to_s
end