logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

OAuth::Lite2::Signer::Algorithms - signature algorithms

Author

       Lyo Kato, <lyo.kato@gmail.com>

Description

       DEPRECATED. algorithm object store for OAuth 2.0 signature.

Methods

add_algorithm($signer)
       Add signer algorithm object. the class should be OAuth::Lite2::Signer::Algorithm or its child.
       OAuth::Lite2::Signer::Algorithm::HMAC_SHA256 is automatically added by default.

   get_algorithm($algorithm_name)
       Get algorithm object by its name.

           my $algorithm = OAuth::Lite2::Signer::Algorithms->get_algorithm('hmac-sha256');

Name

       OAuth::Lite2::Signer::Algorithms - signature algorithms

See Also

       OAuth::Lite2::Signer::Algorithm OAuth::Lite2::Signer::Algorithm::HMAC_SHA1
       OAuth::Lite2::Signer::Algorithm::HMAC_SHA256

Synopsis

           my $algorithm = OAuth::Lite2::Signer::Algorithms->get_algorithm('hmac-sha256');
           my $signature = $algorithm->hash($key, $text);

See Also