OAuth::Lite2::Signer::Algorithm(3pm)

OAuth::Lite2::Signer::Algorithm3pm

Signature algorithm base class.

Usage

Imlement child class inheriting this.

    package OAuth::Lite2::Signer::Algorithm::Foo;
    use parent 'OAuth::Lite2::Signer::Algorithm';
    sub hash {
        # override
    }
    1;

And use with 'hash' method interface.

    my $algorithm = OAuth::Lite2::Signer::Algorithm::Foo->new;
    my $signature = $algorithm->hash($key, $text);

Overview

DEPRECATED. signature algorithm base class.

Methods

new( )

Constructor.

name

Returns a name of the algorithm.

hash( $key, $text )

Generate signature.

    my $signature = $algorithm->hash($key, $text);

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Lyo Kato, <[email protected]>

From liboauth-lite2-perl 0.11-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.