示例#1
0
 public function __construct(Identifier $identifier, ContentLength $contentLength, Content $content, array $children = [])
 {
     parent::__construct($identifier, $contentLength, $content, $children);
     for ($i = 1; $i < 128; $i++) {
         $this->allowCharacter(chr($i));
     }
 }
示例#2
0
 public function __construct($string)
 {
     parent::__construct($string);
     for ($i = 1; $i < 128; $i++) {
         $this->allowCharacter(chr($i));
     }
 }
示例#3
0
 /**
  * Creates a new ASN.1 PrintableString.
  *
  * The ITU-T X.680 Table 8 permits the following characters:
  * Latin capital letters A,B, ... Z
  * Latin small letters   a,b, ... z
  * Digits                0,1, ... 9
  * SPACE                 (space)
  * APOSTROPHE            '
  * LEFT PARENTHESIS      (
  * RIGHT PARENTHESIS     )
  * PLUS SIGN             +
  * COMMA                 ,
  * HYPHEN-MINUS          -
  * FULL STOP             .
  * SOLIDUS               /
  * COLON                 :
  * EQUALS SIGN           =
  * QUESTION MARK         ?
  *
  * @param string $string
  */
 public function __construct(Identifier $identifier, ContentLength $contentLength, Content $content, array $children = [])
 {
     parent::__construct($identifier, $contentLength, $content, $children);
     $this->allowNumbers();
     $this->allowAllLetters();
     $this->allowSpaces();
     $this->allowCharacters("'", '(', ')', '+', '-', '.', ',', '/', ':', '=', '?');
 }
示例#4
0
 public function __construct(Identifier $identifier, ContentLength $contentLength, Content $content, array $children = [])
 {
     parent::__construct($identifier, $contentLength, $content, $children);
 }
示例#5
0
 /**
  * Creates a new ASN.1 NumericString.
  *
  * The following characters are permitted:
  * Digits                0,1, ... 9
  * SPACE                 (space)
  *
  * @param string $string
  */
 public function __construct(Identifier $identifier, ContentLength $contentLength, Content $content, array $children = [])
 {
     parent::__construct($identifier, $contentLength, $content, $children);
     $this->allowNumbers();
     $this->allowSpaces();
 }