コード例 #1
0
ファイル: CSR_PKCS10.php プロジェクト: henrikau/confusa
 function __construct($content)
 {
     parent::__construct($content);
     $this->encoding = $this->getEncoding($content);
     switch ($this->encoding) {
         case parent::$KEY_ENCODING_PEM:
             $this->csr_pem = $this->content;
             break;
         case parent::$KEY_ENCODING_DER:
             $this->csr_pem = $this->der2pem($this->content);
             $this->csr_der = $this->content;
             break;
         default:
             throw new CryptoElementException("Internal problem, encoding set to non-recognizable format.");
     }
 }
コード例 #2
0
ファイル: CSR_SPKAC.php プロジェクト: henrikau/confusa
 function __construct($content)
 {
     parent::__construct($content);
     $this->spkac_der = $content;
 }