NAME

WWW::LetsEncrypt::JWK::RSA

SYNOPSIS

use WWW::LetsEncrypt::JWK::RSA

my $JWK = WWW::LetsEncrypt::JWK::RSA::generate_new(4096);

(see SYNOPSIS from JWK);

DESCRIPTION

This is a concrete implementation of JWK and JWA using RSA for signing.

Attributes

The following attributes are inherited:

from JWK: 'key_type', '_RefObj'

from JWA: 'alg'

'key_type' is automatically set to RSA.

_RefObj contains a Crypt::OpenSSL::RSA object, which is the concrete implementation of RSA. This object takes care of padding and hashing during signing.

Private Functions

_new_from_object

Internal helper function that creates the new JWK::RSA object with the various passed parameters from the public load_* or generate_new functions.

Input

$RSA    - object that holds Crypt::OpenSSL::RSA
$alg    - scalar string representing the algorithm that will be used
          for signing

Output

WWW::LetsEncrypt::JWK::RSA object