The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Domain::SMD::Schema - Mark and Signed-Mark Objects Mapping

INHERITANCE

 Net::Domain::SMD::Schema
   is a Exporter

SYNOPSIS

  # This object is used by Net::Domain::TMCH, so usually not directly
  # accessed by end-users.

  my $smd  = Net::Domain::SMD::Schema->new(%options);
  my $info = $smd->read($fn);

DESCRIPTION

Draft RFC http://tools.ietf.org/html/draft-lozano-tmch-smd-02 specifies a way for TLD (domain registries) to exchange mark rights (brand registrations): "SMD"-files.

This module unpacks these SMD-files, decoding the XML contained in them. Each SMD-file is represented by a separate Net::Domain::SMD::File object.

METHODS

Constructors

Net::Domain::SMD::Schema->new(%options)
 -Option         --Default
  auto_datetime    false
  tmv_certificate  <undef>
auto_datetime => BOOLEAN

Convert all dateTime fields into DateTime objects.

tmv_certificate => Crypt::OpenSSL::X509 object

[0.18] Enables writing of SMD structures, using this certificate to sign the content.

Attributes

$obj->schemas()

Actions

$obj->createSignedMark($document, $data, %options)

Used by Net::Domain::TMCH::createSignedMark() to produce an XML structure to be included in the $document, which may (for instance) be an SMD file or an EPP message.

Net::Domain::SMD::Schema->from( <$filename|$xmlnode|STRING>, %options )

Returns an Net::Domain::SMD object and a source string, which represents the xml input data.

$obj->read($filename)

Returns an Net::Domain::SMD::File object, or an exception which can be caught with Log::Report subroutine try or eval.

SEE ALSO

This module is part of Net-Domain-TMCH distribution version 0.18, built on December 30, 2015. Development was supported by NIC.at, the Austrian Domainname Registry.

 Website: F<http://perl.overmeer.net/net-domain-tmch/>

The documentation and interface style is consistent with a large set of modules, belonging to the XML::Compile suite.

LICENSE

Copyrights 2013-2015 by [Mark Overmeer]. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html