File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,27 @@ Arguments:
41
41
42
42
path to the CA certificate for verification
43
43
44
+ =item B<cert >
45
+
46
+ path to a certificate that is added to the signed XML. It needs to be the
47
+ certificate that includes the public key related to the B<key >
48
+
49
+ =item B<cert_text >
50
+
51
+ text form of the certificate in FORMAT_ASN1 or FORMAT_PEM that is used to
52
+ verify the signed XML.
53
+
54
+ =item B<key >
55
+
56
+ path to a key used to sign the XML.
57
+
44
58
=back
45
59
46
60
=cut
47
61
48
62
has ' cacert' => (isa => ' Maybe[Str]' , is => ' ro' );
49
-
50
63
has ' cert' => (isa => ' Str' , is => ' ro' , required => 0, predicate => ' has_cert' );
64
+ has ' cert_text' => (isa => ' Str' , is => ' ro' );
51
65
has ' key' => (isa => ' Str' , is => ' ro' , required => 0, predicate => ' has_key' );
52
66
53
67
=head2 handle_response( $response )
@@ -68,6 +82,9 @@ sub handle_response {
68
82
$self -> verify_xml(
69
83
$xml ,
70
84
no_xml_declaration => 1,
85
+ $self -> cert_text ? (
86
+ cert_text => $self -> cert_text
87
+ ) : (),
71
88
$self -> cacert ? (
72
89
cacert => $self -> cacert
73
90
) : (),
You can’t perform that action at this time.
0 commit comments