Jeremie Klein > App-CamelPKI > App::CamelPKI::PublicKey

Download:
CamelPKI/App-CamelPKI-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

App::CamelPKI::PublicKey - Public key model for App-PKI.

SYNOPSIS ^

  use App::CamelPKI::PublicKey;

  my $key = parse App::CamelPKI::PublicKey($pemstring, -format => "PEM");

  my $pemstring = $key->serialize(-format => "DER");

DESCRIPTION ^

This class modelise a public key in App-PKI. Each instance is immutable and represetns a public key (RSA only for now).

METHODS ^

as_crypt_openssl_ca_publickey()

Returns an instance of "Crypt::OpenSSL::CA::PublicKey" in Crypt::OpenSSL::CA which modelise the certificate, with a cache.

get_modulus()

get_openssl_keyid()

Perform the same things as the same method in "Crypt::OpenSSL::CA::PublicKey" in Crypt::OpenSSL::CA

equals($cert)

Returns true if, and only if, an other object of the same App::CamelPKI::PublicKey class modelize the same key.