Generated.
@throws ApiException if an error occurs during querying of the API.
@return Fingerprint *
184859
public Fingerprint getLogicalFingerprint (String retina_name, String logical_name) throws ApiException {
        // verify required params are set
        if(retina_name == null || logical_name == null ) {
             throw new ApiException(400, "missing required params");
        }
        // create path and map variables
        String path = "/fingerprints/byName".replaceAll("\\{format\\}","json");

        // query params
        Map<String, String> queryParams = new HashMap<String, String>();
        Map<String, String> headerParams = new HashMap<String, String>();

        if(!"null".equals(String.valueOf(retina_name)))
            queryParams.put("retina_name", String.valueOf(retina_name));
        if(!"null".equals(String.valueOf(logical_name)))
            queryParams.put("logical_name", String.valueOf(logical_name));
        String contentType = "application/json";

        try {
            Object response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams
                , null, headerParams, contentType);
            if(response != null) {
                if (response instanceof String) {
                        @SuppressWarnings("unchecked")
                        Fingerprint result = (Fingerprint) ApiInvoker.deserialize( (String) response, ""
                                , Fingerprint.class, null);return result;
                }
                else if (response instanceof java.io.ByteArrayInputStream) {
                        @SuppressWarnings("unchecked")
                        Fingerprint result =    (Fingerprint) response;return result;
                }
                
            }
            else {
                return null;
            }
        } catch (ApiException ex) {
            if(ex.getCode() == 404) {
            	return null;
            }
            else {
                throw ex;
            }
        }
        return null;}
190110
protected function resolveRequestSignature($request)
    {
        $route = $request->route()[1];

        if (! $route) {
            throw new RuntimeException('Unable to generate fingerprint. Route unavailable.');
        }

        return \sha1(
            \implode('|', $route['version']).'|'.$request->fullUrl().'|'.$request->ip()
        );
    }
935290
public ApiResponse<GetEnabledResponse> getEnabledWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = getEnabledValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<GetEnabledResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
1265600
public OmemoFingerprint getFingerprint(OmemoDevice userDevice)
            throws CorruptedOmemoKeyException {

        T_IdKeyPair keyPair = loadOmemoIdentityKeyPair(userDevice);
        if (keyPair == null) {
            return null;
        }

        return keyUtil().getFingerprintOfIdentityKey(keyUtil().identityKeyFromPair(keyPair));
    }
201421
protected function createGeocoder()
    {
        if ($this->apiKey === null) {
            throw new Exception('API key must be set before geocoding.');
        }

        if ($this->geocoder === null) {
            $this->geocoder = new GoogleMaps(
                new CurlHttpAdapter,
                $this->lang,
                null,
                true,
                $this->apiKey
            );
        }

        return $this->geocoder;
    }
369633
public function verify()
    {
        $this->resetApiParameters();
        $this->setCommonApiParameters();

        $wrongKeys = array();
        foreach ($this->getApiKeys() as $key) {
            $this->setApiParameter('apikey', $key);
            try {
                $this->callApi(self::API_URL_VERIFY);
            } catch (RuntimeException $e) {
                $wrongKeys[] = $key;
            }
        }

        if (!empty($wrongKeys)) {
            throw new InvalidArgumentException(
                sprintf(
                    'Following API keys are invalid: %s',
                    var_export(implode(',', $wrongKeys), true)
                ),
                401
            );
        }

        return $this;
    }
312099
public ApiResponse<UserEnvelope> getSelfWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = getSelfValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<UserEnvelope>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
150860
public ApiResponse<GetInboundResponse> getInboundSettingsWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = getInboundSettingsValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<GetInboundResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
1158532
public function getFingerprint($alg = 'sha256')
    {
        if (!in_array($alg, hash_algos())) {
            throw new RuntimeException(
                sprintf(
                    'unsupported algorithm "%s"',
                    $alg
                )
            );
        }

        return hash($alg, $this->toDer(), true);
    }
1280846
public byte[] getFingerprintFromInputStream(InputStream inputStream) {
        byte[] fingerprint = null;
        try {
            fingerprint = new byte[inputStream.available()];
            inputStream.read(fingerprint);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return fingerprint;
    }
1342944
public static String createFingerprint(Class cl, Method m) {
		return FingerprintGenerator.fingerprint(cl, m);
	}
622739
public function generateSignature()
    {
        if ($this->isFinal() === true && $this->isAbstract() === true) {
            throw new RuntimeException('A method can not be "abstract" and "final".');
        }

        if ($this->isAbstract() === true && $this->getVisibility() === Modifiers::VISIBILITY_PRIVATE) {
            throw new RuntimeException('A method can not be "abstract" and "private".');
        }

        $signature = $this->getIndentation();
        if ($this->isFinal() === true) {
            $signature .= 'final ';
        } elseif ($this->isAbstract()) {
            $signature .= 'abstract ';
        }

        $signature .= $this->getVisibility();

        if ($this->isStatic() === true) {
            $signature .= ' static';
        }

        return $signature . ' function ' . $this->name . '(' . implode(', ', $this->parameters) . ')';
    }
538427
public OpenPgpV4Fingerprint getSigningKeyFingerprint() throws IOException, PGPException {
        PGPSecretKeyRing signingKeyRing = getSigningKeyRing();
        return signingKeyRing != null ? new OpenPgpV4Fingerprint(signingKeyRing.getPublicKey()) : null;
    }
797652
public function getSearch()
    {
        if (!userHasPermission('admin:invoice:invoice:manage')) {
            throw new ApiException('You are not authorised to search invoices.', 401);
        }

        $oInput        = Factory::service('Input');
        $sKeywords     = $oInput->get('keywords');
        $oInvoiceModel = Factory::model('Invoice', 'nails/module-invoice');

        if (strlen($sKeywords) >= 3) {
            throw new ApiException('Search term must be 3 characters or longer.', 400);
        }

        $oResult = $oInvoiceModel->search($sKeywords, null, null, ['expand' => ['customer']]);
        $aOut    = [];

        foreach ($oResult->data as $oInvoice) {
            $aOut[] = $this->formatInvoice($oInvoice);
        }

        return Factory::factory('ApiResponse', 'nails/module-api')
                      ->setData($aOut);
    }
1091646
public byte[] getFingerprintFromFile(String fingerprintFile) {
        byte[] fingerprint = null;
        try {
            InputStream fis = new FileInputStream(fingerprintFile);
            fingerprint = getFingerprintFromInputStream(fis);
            fis.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return fingerprint;
    }
750242
public static function get_fingerprint() {
	return [
		'ip_address'      => !empty($_SERVER['REMOTE_ADDR']) ?          $_SERVER['REMOTE_ADDR']          : false,
		'user_agent'      => !empty($_SERVER['HTTP_USER_AGENT']) ?      $_SERVER['HTTP_USER_AGENT']      : false,
		'accept_content'  => !empty($_SERVER['HTTP_ACCEPT']) ?          $_SERVER['HTTP_ACCEPT']          : false,
		'accept_charset'  => !empty($_SERVER['HTTP_ACCEPT_CHARSET']) ?  $_SERVER['HTTP_ACCEPT_CHARSET']  : false,
		'accept_encoding' => !empty($_SERVER['HTTP_ACCEPT_ENCODING']) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : false,
		'accept_language' => !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : false,
	];
}
981577
public function reset(): ApiClient
    {
        $this->internalRequest = new InternalRequest($this->baseUrl, 'GET');
        $this->request = null;
	$this->response = null;

        $this->profiler = false;

        $this->hasPerformedRequest = false;
        $this->kernel->shutdown();
        $this->kernel->boot();

        return $this;
    }