File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,27 @@ Arguments:
4141
4242path to the CA certificate for verification
4343
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+
4458=back
4559
4660=cut
4761
4862has ' cacert' => (isa => ' Maybe[Str]' , is => ' ro' );
49-
5063has ' cert' => (isa => ' Str' , is => ' ro' , required => 0, predicate => ' has_cert' );
64+ has ' cert_text' => (isa => ' Str' , is => ' ro' );
5165has ' key' => (isa => ' Str' , is => ' ro' , required => 0, predicate => ' has_key' );
5266
5367=head2 handle_response( $response )
@@ -68,6 +82,9 @@ sub handle_response {
6882 $self -> verify_xml(
6983 $xml ,
7084 no_xml_declaration => 1,
85+ $self -> cert_text ? (
86+ cert_text => $self -> cert_text
87+ ) : (),
7188 $self -> cacert ? (
7289 cacert => $self -> cacert
7390 ) : (),
You can’t perform that action at this time.
0 commit comments