The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

EJBCA::CrlPublish::Method

SYNOPSIS

Base class for flexible publishing methods.

This is invoked by EJBCA::CrlPublish to actually transfer a CRL.

INVOCATION

EJBCA::CrlPublish::Method->execute( $target )

Argument must be a single EJBCA::CrlPublish::Target object.

This is the only function that should be called directly, except by subclasses.

HELPER METHODS

These are used by subclasses that implement specific publishing methods.

$self->target

Returns the EJBCA::CrlPublish::Target object that was passed to execute, above.

$self->argMustExist( @argNames )

Croaks if the target object is missing any of the supplied attribute names.

$self->checkFileType( $name, $path )

First argument is used to prefix error messages, second is a path to a file.

Croaks if the file isn't present, plain, and readable.

ABSTRACT METHODS

Subclasses implementing specific publishing methods must provide these.

$self->validate

Croaks if it doesn't like something about the supplied Target object.

$self->publish

Accomplish the publish. Called only if $self->validate succeeds.

AUTHOR

Kevin Cody-Little <kcody@cpan.org>