1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-12-11 16:49:41 +01:00
tgseclib/phpseclib/File/ASN1/Element.php

50 lines
959 B
PHP
Raw Normal View History

<?php
2016-11-23 06:55:33 +01:00
/**
2016-11-23 06:55:33 +01:00
* ASN.1 Raw Element
2014-12-03 17:57:41 +01:00
*
2015-04-02 12:57:52 +02:00
* PHP version 5
2014-12-03 17:57:41 +01:00
*
* @category File
2014-12-10 01:53:05 +01:00
* @package ASN1
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2012 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link http://phpseclib.sourceforge.net
*/
2014-12-10 01:53:05 +01:00
namespace phpseclib\File\ASN1;
/**
2016-11-23 06:55:33 +01:00
* ASN.1 Raw Element
*
2016-11-23 06:55:33 +01:00
* An ASN.1 ANY mapping will return an ASN1\Element object. Use of this object
* will also bypass the normal encoding rules in ASN1::encodeDER()
*
2014-12-10 01:53:05 +01:00
* @package ASN1
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
2014-12-10 01:53:05 +01:00
class Element
{
/**
* Raw element value
*
* @var string
* @access private
*/
public $element;
/**
* Constructor
*
* @param string $encoded
2014-12-10 01:53:05 +01:00
* @return \phpseclib\File\ASN1\Element
* @access public
*/
public function __construct($encoded)
{
$this->element = $encoded;
}
2014-12-02 04:28:02 +01:00
}