Method: GSSAPI::Simple#initialize
- Defined in:
- lib/gssapi/simple.rb
#initialize(host_name, service_name = nil, keytab = nil) ⇒ Simple
Initialize a new GSSAPI::Simple object
22 23 24 25 26 27 28 29 |
# File 'lib/gssapi/simple.rb', line 22 def initialize(host_name, service_name=nil, keytab=nil) @host = host_name @service = service_name.nil? ? "host@#{@host}" : (service_name.include?('@') ? service_name : "#{service_name}@#{@host}") @int_svc_name = import_name(@service) @context = nil # the security context @scred = nil # the service credentials. really only used for the server-side via acquire_credentials set_keytab(keytab) unless keytab.nil? end |