Ejemplo n.º 1
0
 /**
  * Initialize from another AttributeValue.
  *
  * This method is generally used to cast UnknownAttributeValue to
  * specific object when class is declared outside this package.
  *
  * @param self $obj Instance of AttributeValue
  * @return self
  */
 public static function fromSelf(self $obj)
 {
     return static::fromASN1($obj->toASN1()->asUnspecified());
 }
Ejemplo n.º 2
0
 /**
  * Generate ASN.1 structure.
  *
  * @return Element
  */
 public function toASN1()
 {
     return new Sequence($this->_type->toASN1(), $this->_value->toASN1());
 }