Class: Puma::MiniSSL::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/puma/minissl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContext

Returns a new instance of Context.


223
224
225
226
# File 'lib/puma/minissl.rb', line 223

def initialize
  @no_tlsv1   = false
  @no_tlsv1_1 = false
end

Instance Attribute Details

#caObject

Returns the value of attribute ca


247
248
249
# File 'lib/puma/minissl.rb', line 247

def ca
  @ca
end

#certObject

Returns the value of attribute cert


246
247
248
# File 'lib/puma/minissl.rb', line 246

def cert
  @cert
end

#keyObject

non-jruby Context properties


245
246
247
# File 'lib/puma/minissl.rb', line 245

def key
  @key
end

#keystoreObject

jruby-specific Context properties: java uses a keystore and password pair rather than a cert/key pair


230
231
232
# File 'lib/puma/minissl.rb', line 230

def keystore
  @keystore
end

#keystore_passObject

Returns the value of attribute keystore_pass


231
232
233
# File 'lib/puma/minissl.rb', line 231

def keystore_pass
  @keystore_pass
end

#no_tlsv1Object

Returns the value of attribute no_tlsv1


221
222
223
# File 'lib/puma/minissl.rb', line 221

def no_tlsv1
  @no_tlsv1
end

#no_tlsv1==(value) ⇒ Object (writeonly)

disables TLSv1


274
275
276
277
# File 'lib/puma/minissl.rb', line 274

def no_tlsv1=(tlsv1)
  raise ArgumentError, "Invalid value of no_tlsv1=" unless ['true', 'false', true, false].include?(tlsv1)
  @no_tlsv1 = tlsv1
end

#no_tlsv1_1Object

Returns the value of attribute no_tlsv1_1


221
222
223
# File 'lib/puma/minissl.rb', line 221

def no_tlsv1_1
  @no_tlsv1_1
end

#no_tlsv1_1==(value) ⇒ Object (writeonly)

disables TLSv1 and TLSv1.1. Overrides `#no_tlsv1=`


281
282
283
284
# File 'lib/puma/minissl.rb', line 281

def no_tlsv1_1=(tlsv1_1)
  raise ArgumentError, "Invalid value of no_tlsv1_1=" unless ['true', 'false', true, false].include?(tlsv1_1)
  @no_tlsv1_1 = tlsv1_1
end

#ssl_cipher_filterObject

Returns the value of attribute ssl_cipher_filter


248
249
250
# File 'lib/puma/minissl.rb', line 248

def ssl_cipher_filter
  @ssl_cipher_filter
end

#ssl_cipher_listObject

Returns the value of attribute ssl_cipher_list


232
233
234
# File 'lib/puma/minissl.rb', line 232

def ssl_cipher_list
  @ssl_cipher_list
end

#verification_flagsObject

Returns the value of attribute verification_flags


249
250
251
# File 'lib/puma/minissl.rb', line 249

def verification_flags
  @verification_flags
end

#verify_modeObject

Returns the value of attribute verify_mode


220
221
222
# File 'lib/puma/minissl.rb', line 220

def verify_mode
  @verify_mode
end

Instance Method Details

#checkObject


239
240
241
# File 'lib/puma/minissl.rb', line 239

def check
  raise "Keystore not configured" unless @keystore
end