Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Crypt
Rsa
Key
Public.php
Go to the documentation of this file.
1
<?php
26
#require_once 'Zend/Crypt/Rsa/Key.php';
27
34
class
Zend_Crypt_Rsa_Key_Public
extends
Zend_Crypt_Rsa_Key
35
{
36
37
protected
$_certificateString
=
null
;
38
39
public
function
__construct
($string)
40
{
41
$this->
_parse
($string);
42
}
43
48
protected
function
_parse
($string)
49
{
50
if
(preg_match(
"/^-----BEGIN CERTIFICATE-----/"
, $string)) {
51
$this->_certificateString = $string;
52
}
else
{
53
$this->_pemString = $string;
54
}
55
$result
= openssl_get_publickey($string);
56
if
(!
$result
) {
60
#require_once 'Zend/Crypt/Exception.php';
61
throw
new
Zend_Crypt_Exception
(
'Unable to load public key'
);
62
}
63
//openssl_pkey_export($result, $public);
64
//$this->_pemString = $public;
65
$this->_opensslKeyResource =
$result
;
66
$this->_details = openssl_pkey_get_details($this->_opensslKeyResource);
67
}
68
69
public
function
getCertificate
()
70
{
71
return
$this->_certificateString
;
72
}
73
74
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Zend_Crypt_Rsa_Key
Definition:
Key.php:29
Zend_Crypt_Rsa_Key_Public\_parse
_parse($string)
Definition:
Public.php:48
Zend_Crypt_Rsa_Key_Public\__construct
__construct($string)
Definition:
Public.php:39
Zend_Crypt_Exception
Definition:
Exception.php:33
Zend_Crypt_Rsa_Key_Public
Definition:
Public.php:34
Zend_Crypt_Rsa_Key_Public\getCertificate
getCertificate()
Definition:
Public.php:69
Zend_Crypt_Rsa_Key_Public\$_certificateString
$_certificateString
Definition:
Public.php:37