[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * This file is part of the PHPASN1 library. 4 * 5 * Copyright © Friedrich Große <[email protected]> 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11 namespace FG\ASN1; 12 13 class UnknownObject extends ASNObject 14 { 15 /** @var string */ 16 private $value; 17 18 private $identifier; 19 20 /** 21 * @param string|int $identifier Either the first identifier octet as int or all identifier bytes as a string 22 * @param int $contentLength 23 */ 24 public function __construct($identifier, $contentLength) 25 { 26 if (is_int($identifier)) { 27 $identifier = chr($identifier); 28 } 29 30 $this->identifier = $identifier; 31 $this->value = "Unparsable Object ({$contentLength} bytes)"; 32 $this->setContentLength($contentLength); 33 } 34 35 public function getContent() 36 { 37 return $this->value; 38 } 39 40 public function getType() 41 { 42 return ord($this->identifier[0]); 43 } 44 45 public function getIdentifier() 46 { 47 return $this->identifier; 48 } 49 50 protected function calculateContentLength() 51 { 52 return $this->getContentLength(); 53 } 54 55 protected function getEncodedValue() 56 { 57 return ''; 58 } 59 }
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 |