NAME

Mail::DKIM::Canonicalization::Base - base class for canonicalization methods

SYNOPSIS

# canonicalization results get output to STDOUT
my $method = new Mail::DKIM::Canonicalization::nowsp(
                  output_fh => *STDOUT,
                  Signature => $dkim_signature);

# add headers
$method->add_header("Subject: this is the subject\015\012");
$method->finish_header;

# add body
$method->add_body("This is the body.\015\012");
$method->add_body("Another line of the body.\015\012");
$method->finish_body;

# this adds the signature to the end
$method->finish_message;

METHODS

result()

my $result = $method->result;

If you did not specify an object or handle to send the output to, the result of the canonicalization is stored in the canonicalization method itself, and can be accessed using this method.