Class: OCI::Apigateway::Models::TokenAuthenticationRemoteDiscoveryValidationPolicy
- Inherits:
- 
      TokenAuthenticationValidationPolicy
      
        - Object
- TokenAuthenticationValidationPolicy
- OCI::Apigateway::Models::TokenAuthenticationRemoteDiscoveryValidationPolicy
 
- Defined in:
- lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb
Overview
Instrospect Url based validation retrieved at run-time from a remote location to verify the provided token.
Constant Summary
Constants inherited from TokenAuthenticationValidationPolicy
OCI::Apigateway::Models::TokenAuthenticationValidationPolicy::TYPE_ENUM
Instance Attribute Summary collapse
- 
  
    
      #client_details  ⇒ OCI::Apigateway::Models::ClientAppDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This attribute is required. 
- 
  
    
      #is_ssl_verify_disabled  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Defines whether or not to uphold SSL verification. 
- 
  
    
      #max_cache_duration_in_hours  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The duration for which the introspect URL response should be cached before it is fetched again. 
- 
  
    
      #source_uri_details  ⇒ OCI::Apigateway::Models::SourceUriDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This attribute is required. 
Attributes inherited from TokenAuthenticationValidationPolicy
#additional_validation_policy, #type
Class Method Summary collapse
- 
  
    
      .attribute_map  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute mapping from ruby-style variable name to JSON key. 
- 
  
    
      .swagger_types  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute type mapping. 
Instance Method Summary collapse
- 
  
    
      #==(other)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Checks equality by comparing each attribute. 
- 
  
    
      #build_from_hash(attributes)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Builds the object from hash. 
- #eql?(other) ⇒ Boolean
- 
  
    
      #hash  ⇒ Fixnum 
    
    
  
  
  
  
  
  
  
  
  
    Calculates hash code according to all attributes. 
- 
  
    
      #initialize(attributes = {})  ⇒ TokenAuthenticationRemoteDiscoveryValidationPolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initializes the object. 
- 
  
    
      #to_hash  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    Returns the object in the form of hash. 
- 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Returns the string representation of the object. 
Methods inherited from TokenAuthenticationValidationPolicy
Constructor Details
#initialize(attributes = {}) ⇒ TokenAuthenticationRemoteDiscoveryValidationPolicy
Initializes the object
| 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 72 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['type'] = 'REMOTE_DISCOVERY' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.client_details = attributes[:'clientDetails'] if attributes[:'clientDetails'] raise 'You cannot provide both :clientDetails and :client_details' if attributes.key?(:'clientDetails') && attributes.key?(:'client_details') self.client_details = attributes[:'client_details'] if attributes[:'client_details'] self.source_uri_details = attributes[:'sourceUriDetails'] if attributes[:'sourceUriDetails'] raise 'You cannot provide both :sourceUriDetails and :source_uri_details' if attributes.key?(:'sourceUriDetails') && attributes.key?(:'source_uri_details') self.source_uri_details = attributes[:'source_uri_details'] if attributes[:'source_uri_details'] self.is_ssl_verify_disabled = attributes[:'isSslVerifyDisabled'] unless attributes[:'isSslVerifyDisabled'].nil? self.is_ssl_verify_disabled = false if is_ssl_verify_disabled.nil? && !attributes.key?(:'isSslVerifyDisabled') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isSslVerifyDisabled and :is_ssl_verify_disabled' if attributes.key?(:'isSslVerifyDisabled') && attributes.key?(:'is_ssl_verify_disabled') self.is_ssl_verify_disabled = attributes[:'is_ssl_verify_disabled'] unless attributes[:'is_ssl_verify_disabled'].nil? self.is_ssl_verify_disabled = false if is_ssl_verify_disabled.nil? && !attributes.key?(:'isSslVerifyDisabled') && !attributes.key?(:'is_ssl_verify_disabled') # rubocop:disable Style/StringLiterals self.max_cache_duration_in_hours = attributes[:'maxCacheDurationInHours'] if attributes[:'maxCacheDurationInHours'] self.max_cache_duration_in_hours = 1 if max_cache_duration_in_hours.nil? && !attributes.key?(:'maxCacheDurationInHours') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :maxCacheDurationInHours and :max_cache_duration_in_hours' if attributes.key?(:'maxCacheDurationInHours') && attributes.key?(:'max_cache_duration_in_hours') self.max_cache_duration_in_hours = attributes[:'max_cache_duration_in_hours'] if attributes[:'max_cache_duration_in_hours'] self.max_cache_duration_in_hours = 1 if max_cache_duration_in_hours.nil? && !attributes.key?(:'maxCacheDurationInHours') && !attributes.key?(:'max_cache_duration_in_hours') # rubocop:disable Style/StringLiterals end | 
Instance Attribute Details
#client_details ⇒ OCI::Apigateway::Models::ClientAppDetails
This attribute is required.
| 16 17 18 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 16 def client_details @client_details end | 
#is_ssl_verify_disabled ⇒ BOOLEAN
Defines whether or not to uphold SSL verification.
| 25 26 27 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 25 def is_ssl_verify_disabled @is_ssl_verify_disabled end | 
#max_cache_duration_in_hours ⇒ Integer
The duration for which the introspect URL response should be cached before it is fetched again.
| 31 32 33 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 31 def max_cache_duration_in_hours @max_cache_duration_in_hours end | 
#source_uri_details ⇒ OCI::Apigateway::Models::SourceUriDetails
This attribute is required.
| 20 21 22 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 20 def source_uri_details @source_uri_details end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 34 35 36 37 38 39 40 41 42 43 44 45 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 34 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'type': :'type', 'additional_validation_policy': :'additionalValidationPolicy', 'client_details': :'clientDetails', 'source_uri_details': :'sourceUriDetails', 'is_ssl_verify_disabled': :'isSslVerifyDisabled', 'max_cache_duration_in_hours': :'maxCacheDurationInHours' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 48 49 50 51 52 53 54 55 56 57 58 59 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 48 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'type': :'String', 'additional_validation_policy': :'OCI::Apigateway::Models::AdditionalValidationPolicy', 'client_details': :'OCI::Apigateway::Models::ClientAppDetails', 'source_uri_details': :'OCI::Apigateway::Models::SourceUriDetails', 'is_ssl_verify_disabled': :'BOOLEAN', 'max_cache_duration_in_hours': :'Integer' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 118 119 120 121 122 123 124 125 126 127 128 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 118 def ==(other) return true if equal?(other) self.class == other.class && type == other.type && additional_validation_policy == other.additional_validation_policy && client_details == other.client_details && source_uri_details == other.source_uri_details && is_ssl_verify_disabled == other.is_ssl_verify_disabled && max_cache_duration_in_hours == other.max_cache_duration_in_hours end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 153 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
| 133 134 135 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 133 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 142 143 144 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 142 def hash [type, additional_validation_policy, client_details, source_uri_details, is_ssl_verify_disabled, max_cache_duration_in_hours].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 186 187 188 189 190 191 192 193 194 195 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 186 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_s ⇒ String
Returns the string representation of the object
| 180 181 182 | # File 'lib/oci/apigateway/models/token_authentication_remote_discovery_validation_policy.rb', line 180 def to_s to_hash.to_s end |