[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * This file is part of Lcobucci\JWT, a simple library to handle JWT and JWS 4 * 5 * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause 6 */ 7 8 namespace Lcobucci\JWT\Signer; 9 10 /** 11 * A utilitarian class that encapsulates the retrieval of public and private keys 12 * 13 * @author Luís Otávio Cobucci Oblonczyk <[email protected]> 14 * @since 2.1.0 15 * 16 * @deprecated Since we've removed OpenSSL from ECDSA there's no reason to use this class 17 */ 18 class Keychain 19 { 20 /** 21 * Returns a private key from file path or content 22 * 23 * @param string $key 24 * @param string $passphrase 25 * 26 * @return Key 27 */ 28 public function getPrivateKey($key, $passphrase = null) 29 { 30 return new Key($key, $passphrase); 31 } 32 33 /** 34 * Returns a public key from file path or content 35 * 36 * @param string $certificate 37 * 38 * @return Key 39 */ 40 public function getPublicKey($certificate) 41 { 42 return new Key($certificate); 43 } 44 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |