mirror of
https://github.com/crypto-pro-web/crypto-pro-php.git
synced 2025-01-18 11:25:50 +03:00
озвращаем алгоритм массивом
This commit is contained in:
parent
bafd80f316
commit
c47e29fc9f
@ -102,7 +102,7 @@ class Certificate
|
|||||||
* возвращает информацию об алгоритме сертификата
|
* возвращает информацию об алгоритме сертификата
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
* @return AlgorithmInfoInterface
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getAlgorithm()
|
public function getAlgorithm()
|
||||||
{
|
{
|
||||||
@ -110,10 +110,10 @@ class Certificate
|
|||||||
{
|
{
|
||||||
$cadesPublicKey = $this->_cadesCertificate->PublicKey();
|
$cadesPublicKey = $this->_cadesCertificate->PublicKey();
|
||||||
$cadesPublicKeyAlgorithm = $cadesPublicKey->get_Algorithm();
|
$cadesPublicKeyAlgorithm = $cadesPublicKey->get_Algorithm();
|
||||||
$algorithmInfo = new class(
|
$algorithmInfo = [
|
||||||
$cadesPublicKeyAlgorithm->get_FriendlyName(),
|
'algorithm' => $cadesPublicKeyAlgorithm->get_FriendlyName(),
|
||||||
$cadesPublicKeyAlgorithm->get_Value()) extends AbstractAlgorithmInfo {
|
'oid' => $cadesPublicKeyAlgorithm->get_Value(),
|
||||||
};
|
];
|
||||||
}
|
}
|
||||||
catch (\Throwable $e)
|
catch (\Throwable $e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user