« lib/Crypt/Perl/X509/Extension/inhibitAnyPolicy.pm
↑ Summary
lib/Crypt/Perl/X509/Extension/noCheck.pm »
| 1 | package Crypt::Perl::X509::Extension::policyConstraints; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =encoding utf-8 | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Crypt::Perl::X509::Extension::policyConstraints | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | my $usage_obj = Crypt::Perl::X509::Extension::policyConstraints->new( | ||
| 15 | requireExplicitPolicy => 4, | ||
| 16 | inhibitPolicyMapping => 6, | ||
| 17 | ); | ||
| 18 | |||
| 19 | =head1 SEE ALSO | ||
| 20 | |||
| 21 | L<https://tools.ietf.org/html/rfc5280#section-4.2.1.11> | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | 1 | ▶ | use parent qw( Crypt::Perl::X509::Extension ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | 1 | ▶ | use constant OID => '2.5.29.36'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | |||
| 29 | 1 | ▶ | use constant CRITICAL => 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | |||
| 31 | 1 | ▶ | use constant ASN1 => <<END; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | SkipCerts ::= INTEGER | ||
| 33 | |||
| 34 | policyConstraints ::= SEQUENCE { | ||
| 35 | requireExplicitPolicy [0] SkipCerts OPTIONAL, | ||
| 36 | inhibitPolicyMapping [1] SkipCerts OPTIONAL | ||
| 37 | } | ||
| 38 | END | ||
| 39 | |||
| 40 | sub new { | ||
| 41 | 6 | ▶ | my ($class, %opts) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 42 | |||
| 43 | 6 | return bless \%opts, $class; | |
| 44 | } | ||
| 45 | |||
| 46 | sub _encode_params { | ||
| 47 | 6 | ▶ | my ($self) = @_; |
|
Subroutine
_encode_params: called CC=1 SCAR=0.0
| |||
| 48 | |||
| 49 | 6 | return { %$self }; | |
| 50 | } | ||
| 51 | |||
| 52 | 1 | 1; | |