![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-jwt-user-token/Model/Config/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\JwtUserToken\Model\Config; use Magento\Framework\Data\OptionSourceInterface; use Magento\Framework\Jwt\Jwe\JweEncryptionSettingsInterface; /** * JWE content encryption algorithm options */ class JweAlgorithmSource implements OptionSourceInterface { private const ALGS = [ JweEncryptionSettingsInterface::CONTENT_ENCRYPTION_ALGO_A128GCM, JweEncryptionSettingsInterface::CONTENT_ENCRYPTION_ALGO_A192GCM, JweEncryptionSettingsInterface::CONTENT_ENCRYPTION_ALGO_A256GCM, JweEncryptionSettingsInterface::CONTENT_ENCRYPTION_ALGO_A128_HS256, JweEncryptionSettingsInterface::CONTENT_ENCRYPTION_ALGO_A192_HS384, JweEncryptionSettingsInterface::CONTENT_ENCRYPTION_ALGO_A256_HS512 ]; /** * @inheritDoc */ public function toOptionArray() { $options = []; foreach (self::ALGS as $algorithm) { $options[] = ['label' => __($algorithm), 'value' => $algorithm]; } return $options; } }