Class Openwsman::Transport
In: ../openwsman.i
openwsman/openwsman.rb
Parent: Object

Transport reflects details of the http(s) transport layer between client and server.

Methods

Public Class methods

called when authentication credentials missing or wrong

Public Instance methods

Get the HTTP agent identifier string

Set the HTTP agent identifier (User-agent:) string

This is how the client will show up in the servers http log. Defaults to "Openwsman"

Set the authentication method

Set the authentication method Value must be one of:

  +Openwsman::NO_AUTH_STR+
  +Openwsman::BASIC_AUTH_STR+
  +Openwsman::DIGEST_AUTH_STR+
  +Openwsman::PASS_AUTH_STR+
  +Openwsman::NTLM_AUTH_STR+
  +Openwsman::GSSNEGOTIATE_AUTH_STR+

Check if the passed method id is valid for authentication

Set the authentication method string corresponding to the given auth method id

Value must be one of:

  +Openwsman::NO_AUTH+
  +Openwsman::BASIC_AUTH+
  +Openwsman::DIGEST_AUTH+
  +Openwsman::PASS_AUTH+
  +Openwsman::NTLM_AUTH+
  +Openwsman::GSSNEGOTIATE_AUTH+

Get the authentication method integer id

Get the certification authority (CAINFO)

Set the certification authority (CAINFO)

Windows client

Use local CA ?

Windows client

Use local CA ?

Windows client

Get the CA OID

Windows client

Set the CA OID

Reference

support.microsoft.com/kb/287547

Get the path to the certification authority (CAINFO) store

Set the path to the certification authority (CAINFO) store

Get the certificate

Set the certificate

Set the certification thumbprint

Set the certification thumbprint

Close the transport. No further communication possible.

Get string corresponding to given error code

Get the key

Set the key

Server credentials Get the password part of the http transport credentials

Server credentials Set the password part of the http transport credentials

Get http proxy URL

Set http proxy URL

Pass nil to disable proxy communication

Example

  transport.proxy = "http://your.proxy.com:80"

Windows clients: HTTP proxy credentials

Get the password part of the http proxy credentials

Windows clients: HTTP proxy credentials

Set the password part of the http proxy credentials

Windows clients: HTTP proxy credentials

Get the username part of the http proxy credentials

Windows clients: HTTP proxy credentials

Set the username part of the http proxy credentials

Linux clients: HTTP proxy credentials

Get the proxy username and password as "username:password"

Linux clients: HTTP proxy credentials

Set the proxy username and password

Example

  transport.proxyauth = "username:password"
timeout()

Set the transport timeout in seconds

Note

This is the http layer timeout. Not to be confused with the WS-Management operation timeout set via Openwsman::ClientOptions.timeout

Server credentials Get the username part of the http transport credentials

Server credentials Set the username part of the http transport credentials

verify the host in SSL communication ?

If passed false, nil, or 0: disable peer verification else: enable peer verification

verify_host?()

verify the peer in SSL communication ?

If passed false, nil, or 0: disable peer verification else: enable peer verification

verify_peer?()

[Validate]