| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Crypt::Perl::X509::Extension::subjectKeyIdentifier; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 1 |  |  | 1 |  | 618 | use strict; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 27 |  | 
| 4 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 29 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | =encoding utf-8 | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | =head1 NAME | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | Crypt::Perl::X509::Extension::keyUsage | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 13 |  |  |  |  |  |  |  | 
| 14 |  |  |  |  |  |  | my $usage_obj = Crypt::Perl::X509::Extension::subjectKeyIdentifier->new( | 
| 15 |  |  |  |  |  |  | $subj_key_id    #octet string | 
| 16 |  |  |  |  |  |  | ); | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | =head1 SEE ALSO | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | L | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =cut | 
| 23 |  |  |  |  |  |  |  | 
| 24 | 1 |  |  | 1 |  | 4 | use parent qw( Crypt::Perl::X509::Extension ); | 
|  | 1 |  |  |  |  | 4 |  | 
|  | 1 |  |  |  |  | 5 |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 | 1 |  |  | 1 |  | 56 | use Crypt::Perl::X (); | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 34 |  | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | use constant { | 
| 29 | 1 |  |  |  |  | 68 | OID => '2.5.29.14', | 
| 30 |  |  |  |  |  |  | CRITICAL => 0, | 
| 31 | 1 |  |  | 1 |  | 141 | }; | 
|  | 1 |  |  |  |  | 3 |  | 
| 32 |  |  |  |  |  |  |  | 
| 33 | 1 |  |  | 1 |  | 5 | use constant ASN1 => < | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 143 |  | 
| 34 |  |  |  |  |  |  | subjectKeyIdentifier ::= OCTET STRING | 
| 35 |  |  |  |  |  |  | END | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | sub new { | 
| 38 | 6 |  |  | 6 | 0 | 133 | my ($class, $octet_str) = @_; | 
| 39 |  |  |  |  |  |  |  | 
| 40 | 6 | 50 |  |  |  | 29 | if (!length $octet_str) { | 
| 41 | 0 |  |  |  |  | 0 | die Crypt::Perl::X::create('Generic', 'Need data!'); | 
| 42 |  |  |  |  |  |  | } | 
| 43 |  |  |  |  |  |  |  | 
| 44 | 6 |  |  |  |  | 42 | return bless \$octet_str, $class; | 
| 45 |  |  |  |  |  |  | } | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | sub _encode_params { | 
| 48 | 6 |  |  | 6 |  | 21 | my ($self) = @_; | 
| 49 |  |  |  |  |  |  |  | 
| 50 | 6 |  |  |  |  | 22 | return $$self; | 
| 51 |  |  |  |  |  |  | } | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | 1; |