Method: RbVmomi::SSO#initialize
- Defined in:
- lib/rbvmomi/sso.rb
#initialize(opts = {}) ⇒ SSO
Creates an instance of an SSO object
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/rbvmomi/sso.rb', line 50 def initialize(opts = {}) @host = opts[:host] @insecure = opts.fetch(:insecure, false) @password = opts[:password] @path = opts.fetch(:path, STS_PATH) @port = opts.fetch(:port, 443) @user = opts[:user] load_x509(opts[:private_key], opts[:certificate]) end |