Scroll to navigation

CSAF::Options::Writer(3pm) User Contributed Perl Documentation CSAF::Options::Writer(3pm)

NAME

CSAF::Options::Writer - CSAF::Writer configurator

SYNOPSIS

    use CSAF::Options::Writer;
    my $options = CSAF::Options::Writer->new( );
    $options->configure(
        create_sha256_integrity => 0,
        create_gpg_signature    => 1,
        update_index            => 1,
        update_changes          => 1
    );
    if (my $passphrase = get_passphrase_from_stdin) {
        $options->gpg_passphrase($passphrase);
    }

DESCRIPTION

CSAF::Options::Writer is a configurator of CSAF::Writer.

METHODS

CSAF::Options::Writer inherits all methods from CSAF::Util::Options.

ATTRIBUTES

Create and update the "index.txt" file (default "TRUE").
Create and update the "changes.csv" file (default "TRUE").
Create SHA256 integrity file "*.sha256" for the provided CSAF document (default "TRUE").
Create SHA512 integrity file "*.sha512" for the provided CSAF document (default "TRUE").
Sign the CSAF document with GPG and create signature file "*.sha256" (default "FALSE").
Specify the default GPG key.
Specify the passphrase for the provided GPG key.

SUPPORT

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at <https://github.com/giterlizzi/perl-CSAF/issues>. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license.

<https://github.com/giterlizzi/perl-CSAF>

    git clone https://github.com/giterlizzi/perl-CSAF.git

AUTHOR

Giuseppe Di Terlizzi <gdt@cpan.org>

LICENSE AND COPYRIGHT

This software is copyright (c) 2023-2025 by Giuseppe Di Terlizzi.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2025-09-03 perl v5.40.1