function getPrivateKey($type = self::PUBLIC_FORMAT_PKCS1)
    {
        if (empty($this->primes)) {
            return false;
        }

        $oldFormat = $this->privateKeyFormat;
        $this->privateKeyFormat = $type;
        $temp = $this->_convertPrivateKey($this->modulus, $this->publicExponent, $this->exponent, $this->primes, $this->exponents, $this->coefficients);
        $this->privateKeyFormat = $oldFormat;
        return $temp;
    }
function getPrivateKey($type = self::PUBLIC_FORMAT_PKCS1)
    {
        if (empty($this->primes)) {
            return false;
        }

        $oldFormat = $this->privateKeyFormat;
        $this->privateKeyFormat = $type;
        $temp = $this->_convertPrivateKey($this->modulus, $this->publicExponent, $this->exponent, $this->primes, $this->exponents, $this->coefficients);
        $this->privateKeyFormat = $oldFormat;
        return $temp;
    }
function getPrivateKey ( $ type = self :: PUBLIC_FORMAT_PKCS1 ) { if ( empty ( $ this -> primes ) ) { return false ; } $ oldFormat = $ this -> privateKeyFormat ; $ this -> privateKeyFormat = $ type ; $ temp = $ this -> _convertPrivateKey ( $ this -> modulus , $ this -> publicExponent , $ this -> exponent , $ this -> primes , $ this -> exponents , $ this -> coefficients ) ; $ this -> privateKeyFormat = $ oldFormat ; return $ temp ; }
Returns the private key

The private key is only returned if the currently loaded key contains the constituent prime numbers.

@see self::getPublicKey()
@access public
@param string $key
@param int $type optional
@return mixed
Returns the private key