line |
stmt |
bran |
path |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
# SecretKey.pm |
2
|
|
|
|
|
|
|
|
# - providing an object-oriented approach to GnuPG secret keys |
3
|
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
# Copyright (C) 2000 Frank J. Tobin <ftobin@cpan.org> |
5
|
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
|
# This module is free software; you can redistribute it and/or modify it |
7
|
|
|
|
|
|
|
|
# under the same terms as Perl itself. |
8
|
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
10
|
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
11
|
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
12
|
|
|
|
|
|
|
|
# |
13
|
|
|
|
|
|
|
|
# $Id: SecretKey.pm,v 1.9 2001/09/14 12:34:36 ftobin Exp $ |
14
|
|
|
|
|
|
|
|
# |
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
package GnuPG::SecretKey; |
17
|
5
|
|
|
|
5
|
|
56
|
use Moo; |
|
5
|
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
|
48
|
|
18
|
|
|
|
|
|
|
|
|
19
|
5
|
|
|
|
5
|
|
2082
|
BEGIN { extends qw( GnuPG::PrimaryKey ) } |
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
__END__ |
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
GnuPG::SecretKey - GnuPG Secret Key Objects |
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
# assumes a GnuPG::Interface object in $gnupg |
32
|
|
|
|
|
|
|
|
my @keys = $gnupg->get_secret_keys( 'ftobin' ); |
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
# now GnuPG::SecretKey objects are in @keys |
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
GnuPG::SecretKey objects are generally instantiated |
39
|
|
|
|
|
|
|
|
through various methods of GnuPG::Interface. |
40
|
|
|
|
|
|
|
|
They embody various aspects of a GnuPG secret key. |
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
This package inherits data members and object methods |
43
|
|
|
|
|
|
|
|
from GnuPG::PrimaryKey, which is described here, but rather |
44
|
|
|
|
|
|
|
|
in L<GnuPG::PrimaryKey>. |
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
Currently, this package is functionally no different |
47
|
|
|
|
|
|
|
|
from GnuPG::PrimaryKey. |
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
=head1 SEE ALSO |
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
L<GnuPG::PrimaryKey>, |
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
=cut |