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.



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

def initialize
  @no_tlsv1   = false
  @no_tlsv1_1 = false
end

Instance Attribute Details

#caObject

Returns the value of attribute ca.



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

def ca
  @ca
end

#certObject

Returns the value of attribute cert.



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

def cert
  @cert
end

#keyObject

non-jruby Context properties



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

def key
  @key
end

#keystoreObject

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



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

def keystore
  @keystore
end

#keystore_passObject

Returns the value of attribute keystore_pass.



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

def keystore_pass
  @keystore_pass
end

#no_tlsv1Object

Returns the value of attribute no_tlsv1.



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

def no_tlsv1
  @no_tlsv1
end

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

disables TLSv1



272
273
274
275
# File 'lib/puma/minissl.rb', line 272

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.



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

def no_tlsv1_1
  @no_tlsv1_1
end

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

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



279
280
281
282
# File 'lib/puma/minissl.rb', line 279

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.



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

def ssl_cipher_filter
  @ssl_cipher_filter
end

#ssl_cipher_listObject

Returns the value of attribute ssl_cipher_list.



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

def ssl_cipher_list
  @ssl_cipher_list
end

#verify_modeObject

Returns the value of attribute verify_mode.



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

def verify_mode
  @verify_mode
end

Instance Method Details

#checkObject



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

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