1Mail::DKIM::PrivateKey(U3s)er Contributed Perl DocumentatMiaoinl::DKIM::PrivateKey(3)
2
3
4

NAME

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

SYNOPSIS

10        my $key1 = Mail::DKIM::PrivateKey->load(
11                      File => "/path/to/private.key");
12
13        my $key2 = Mail::DKIM::PrivateKey->load(
14                      Data => $base64);
15
16        # use the loaded key in a DKIM signing object
17        my $dkim = Mail::DKIM::Signer->new(
18                      Key => $key2,
19                    );
20

CONSTRUCTOR

22   load() - loads a private key into memory
23        my $key1 = Mail::DKIM::PrivateKey->load(
24                      File => "/path/to/private.key");
25
26       Loads the Base64-encoded key from the specified file.
27
28         my $key2 = Mail::DKIM::PrivateKey->load(Data => $base64);
29
30       Loads the Base64-encoded key from a string already in memory.
31
32         my $key3 = Mail::DKIM::PrivateKey->load(Cork => $openssl_object);
33
34       Creates a Mail::DKIM::PrivateKey wrapper object for the given OpenSSL
35       key object. The key object should be of type Crypt::OpenSSL::RSA.
36

METHODS

38   cork() - access the underlying OpenSSL key object
39         $openssl_object = $key->cork;
40
41       The returned object is of type Crypt::OpenSSL::RSA.
42

AUTHOR

44       Jason Long, <jlong@messiah.edu>
45
47       Copyright (C) 2006-2008 by Messiah College
48
49       This library is free software; you can redistribute it and/or modify it
50       under the same terms as Perl itself, either Perl version 5.8.6 or, at
51       your option, any later version of Perl 5 you may have available.
52
53
54
55perl v5.10.1                      2009-07-30         Mail::DKIM::PrivateKey(3)
Impressum