@@ -1211,62 +1211,64 @@ def use_ssl=(flag)
1211
1211
:verify_hostname ,
1212
1212
] # :nodoc:
1213
1213
1214
- # Sets path of a CA certification file in PEM format.
1215
- #
1216
- # The file can contain several CA certificates.
1214
+ # Sets or returns the path to a CA certification file in PEM format.
1217
1215
attr_accessor :ca_file
1218
1216
1219
- # Sets path of a CA certification directory containing certifications in
1220
- # PEM format.
1217
+ # Sets or returns the path of to CA directory
1218
+ # containing certification files in PEM format.
1221
1219
attr_accessor :ca_path
1222
1220
1223
- # Sets an OpenSSL::X509::Certificate object as client certificate.
1224
- # (This method is appeared in Michal Rokos's OpenSSL extension) .
1221
+ # Sets or returns the OpenSSL::X509::Certificate object
1222
+ # to be used for client certification .
1225
1223
attr_accessor :cert
1226
1224
1227
- # Sets the X509::Store to verify peer certificate.
1225
+ # Sets or returns the X509::Store to be used for verifying peer certificate.
1228
1226
attr_accessor :cert_store
1229
1227
1230
- # Sets the available ciphers. See OpenSSL::SSL::SSLContext#ciphers=
1228
+ # Sets or returns the available SSL ciphers.
1229
+ # See {OpenSSL::SSL::SSLContext#ciphers=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D].
1231
1230
attr_accessor :ciphers
1232
1231
1233
- # Sets the extra X509 certificates to be added to the certificate chain.
1234
- # See OpenSSL::SSL::SSLContext#extra_chain_cert=
1232
+ # Sets or returns the extra X509 certificates to be added to the certificate chain.
1233
+ # See { OpenSSL::SSL::SSLContext#add_certificate}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-add_certificate].
1235
1234
attr_accessor :extra_chain_cert
1236
1235
1237
- # Sets an OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object.
1238
- # (This method is appeared in Michal Rokos's OpenSSL extension.)
1236
+ # Sets or returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object.
1239
1237
attr_accessor :key
1240
1238
1241
- # Sets the SSL timeout seconds.
1239
+ # Sets or returns the SSL timeout seconds.
1242
1240
attr_accessor :ssl_timeout
1243
1241
1244
- # Sets the SSL version. See OpenSSL::SSL::SSLContext#ssl_version=
1242
+ # Sets or returns the SSL version.
1243
+ # See {OpenSSL::SSL::SSLContext#ssl_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D].
1245
1244
attr_accessor :ssl_version
1246
1245
1247
- # Sets the minimum SSL version. See OpenSSL::SSL::SSLContext#min_version=
1246
+ # Sets or returns the minimum SSL version.
1247
+ # See {OpenSSL::SSL::SSLContext#min_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D].
1248
1248
attr_accessor :min_version
1249
1249
1250
- # Sets the maximum SSL version. See OpenSSL::SSL::SSLContext#max_version=
1250
+ # Sets or returns the maximum SSL version.
1251
+ # See {OpenSSL::SSL::SSLContext#max_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D].
1251
1252
attr_accessor :max_version
1252
1253
1253
- # Sets the verify callback for the server certification verification.
1254
+ # Sets or returns the callback for the server certification verification.
1254
1255
attr_accessor :verify_callback
1255
1256
1256
- # Sets the maximum depth for the certificate chain verification.
1257
+ # Sets or returns the maximum depth for the certificate chain verification.
1257
1258
attr_accessor :verify_depth
1258
1259
1259
- # Sets the flags for server the certification verification at beginning of
1260
- # SSL/TLS session.
1261
- #
1260
+ # Sets or returns the flags for server the certification verification
1261
+ # at the beginning of the SSL/TLS session.
1262
1262
# OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable.
1263
1263
attr_accessor :verify_mode
1264
1264
1265
- # Sets to check the server certificate is valid for the hostname.
1266
- # See OpenSSL::SSL::SSLContext#verify_hostname=
1265
+ # Sets or returns whether to verify that the server certificate is valid
1266
+ # for the hostname.
1267
+ # See {OpenSSL::SSL::SSLContext#verify_hostname=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-verify_mode].
1267
1268
attr_accessor :verify_hostname
1268
1269
1269
- # The X509 certificate chain (an array of strings) for the session's socket peer,
1270
+ # Returns the X509 certificate chain (an array of strings)
1271
+ # for the session's socket peer,
1270
1272
# or +nil+ if none.
1271
1273
def peer_cert
1272
1274
if not use_ssl? or not @socket
@@ -1497,17 +1499,20 @@ def proxy_class?
1497
1499
defined? ( @is_proxy_class ) ? @is_proxy_class : false
1498
1500
end
1499
1501
1500
- # Address of proxy host. If \Net::HTTP does not use a proxy, nil.
1502
+ # Returns the address of the proxy host, or +nil+ if none;
1503
+ # see Net::HTTP@Proxy+Server.
1501
1504
attr_reader :proxy_address
1502
1505
1503
- # Port number of proxy host. If \Net::HTTP does not use a proxy, nil.
1506
+ # Returns the port number of the proxy host, or +nil+ if none;
1507
+ # see Net::HTTP@Proxy+Server.
1504
1508
attr_reader :proxy_port
1505
1509
1506
- # User name for accessing proxy. If \Net::HTTP does not use a proxy, nil.
1510
+ # Returns the user name for accessing the proxy, or +nil+ if none;
1511
+ # see Net::HTTP@Proxy+Server.
1507
1512
attr_reader :proxy_user
1508
1513
1509
- # User password for accessing proxy. \If Net::HTTP does not use a proxy,
1510
- # nil .
1514
+ # Returns the password for accessing the proxy, or +nil+ if none;
1515
+ # see Net::HTTP@Proxy+Server .
1511
1516
attr_reader :proxy_pass
1512
1517
end
1513
1518
0 commit comments