• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Zend/Crypt/Rsa/Key.php

00001 <?php
00029 class Zend_Crypt_Rsa_Key implements Countable
00030 {
00034     protected $_pemString = null;
00035 
00041     protected $_details = array();
00042 
00048     protected $_opensslKeyResource = null;
00049 
00055     public function getOpensslKeyResource()
00056     {
00057         return $this->_opensslKeyResource;
00058     }
00059 
00064     public function toString()
00065     {
00066         if (!empty($this->_pemString)) {
00067             return $this->_pemString;
00068         } elseif (!empty($this->_certificateString)) {
00069             return $this->_certificateString;
00070         }
00074         require_once 'Zend/Crypt/Exception.php';
00075         throw new Zend_Crypt_Exception('No public key string representation is available');
00076     }
00077 
00081     public function __toString()
00082     {
00083         return $this->toString();
00084     }
00085 
00086     public function count()
00087     {
00088         return $this->_details['bits'];
00089     }
00090 
00091     public function getType()
00092     {
00093         return $this->_details['type'];
00094     }
00095 }

Generated on Thu Apr 19 2012 17:01:16 for openbiz by  doxygen 1.7.2