Module: CXML

Defined in:
lib/cxml/money.rb,
lib/cxml.rb,
lib/cxml/errors.rb,
lib/cxml/header.rb,
lib/cxml/parser.rb,
lib/cxml/sender.rb,
lib/cxml/status.rb,
lib/cxml/request.rb,
lib/cxml/version.rb,
lib/cxml/document.rb,
lib/cxml/protocol.rb,
lib/cxml/response.rb,
lib/cxml/credential.rb,
lib/cxml/credential_mac.rb

Overview

The CredentialMac element is used for the Message Authentication Code (MAC) authentication method. This authentication method is used in situations where the sender must prove to the receiver that it has been authenticated by shared secret by a trusted third party. For example, a direct PunchOut request can travel directly from a buyer to a supplier without going through a network commerce hub, because it contains a MAC (generated by the network commerce hub) that allows the supplier to authenticate it. The trusted third party computes the MAC and transfers it to the sender through the Profile transaction. The MAC is opaque to the sender (it is secure and non-reversible). To see how the MAC is transmitted from the trusted third party to the sender, see “ProfileResponse” on page 63.

Page 45 cXML reference

Defined Under Namespace

Modules: Protocol Classes: Credential, CredentialMac, Document, Error, Header, Money, ParseError, Parser, Request, Response, Sender, Status

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.builderObject



26
27
28
# File 'lib/cxml.rb', line 26

def self.builder
  Nokogiri::XML::Builder.new(:encoding => "UTF-8")
end

.parse(str) ⇒ Object



22
23
24
# File 'lib/cxml.rb', line 22

def self.parse(str)
  CXML::Parser.new.parse(str)
end