NAME

Mail::DKIM::PrivateKey - a private key loaded in memory for DKIM signing

SYNOPSIS

my $key1 = Mail::DKIM::PrivateKey->load(
              File => "/path/to/private.key");

my $key2 = Mail::DKIM::PrivateKey->load(
              Data => $base64);

# use the loaded key in a DKIM signing object
my $dkim = Mail::DKIM::Signer->new(
              Key => $key2,
            );

CONSTRUCTOR

load() - loads a private key into memory

my $key1 = Mail::DKIM::PrivateKey->load(
              File => "/path/to/private.key");

Loads the Base64-encoded key from the specified file.

my $key2 = Mail::DKIM::PrivateKey->load(Data => $base64);

Loads the Base64-encoded key from a string already in memory.