Module: WSDL::Security::Constants

Defined in:
lib/wsdl/security/constants.rb

Overview

WS-Security constants including namespaces and URIs from OASIS specifications.

Constants are organized into nested modules for discoverability:

Examples:

Accessing namespace constants

WSDL::Security::Constants::NS::Security::WSSE
# => "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"

Accessing algorithm constants

WSDL::Security::Constants::Algorithms::Digest::SHA256
# => "http://www.w3.org/2001/04/xmlenc#sha256"

See Also:

Defined Under Namespace

Modules: Algorithms, Encoding, KeyReference, NS, TokenProfiles

Constant Summary collapse

WS_ADDRESSING_HEADERS =

Standard WS-Addressing header elements that may be signed.

%w[
  To
  From
  ReplyTo
  FaultTo
  Action
  MessageID
  RelatesTo
].freeze
NAMESPACE_PREFIXES =

Default namespace prefixes used when building XML.

{
  'wsse' => NS::Security::WSSE,
  'wsu' => NS::Security::WSU,
  'ds' => NS::Signature::DS,
  'ec' => NS::Signature::EC,
  'wsa' => NS::Addressing::V1_0
}.freeze
EXPLICIT_PREFIXES =

Default explicit namespace prefixes for XML elements. Used when explicit_namespace_prefixes option is enabled.

{
  wsse: 'wsse',
  wsu: 'wsu',
  ds: 'ds',
  ec: 'ec'
}.freeze