public class RequestHandler extends Object
Constructor and Description |
---|
RequestHandler() |
Modifier and Type | Method and Description |
---|---|
static @NotNull String |
check(String uri,
Secret apiKey)
Check string.
|
static @NotNull String |
createTestCredential(String uri,
List<Credentials> credential,
Secret apiKey)
Call API to create Test credentials.
|
static @NotNull String |
getProgress(String uri,
int scanId,
Secret apiKey)
Get Scan Progress.
|
static @NotNull String |
getRisk(String uri,
int scanId,
Secret apiKey)
Get Scan Global risk.
|
static @NotNull String |
runRequest(String uri,
Secret apiKey,
String input)
Run request string.
|
static @NotNull String |
upload(String title,
String uri,
Secret apiKey,
String fileName,
byte[] fileContent,
String scanProfile,
String platform,
Integer scanCredential)
Upload string.
|
@NotNull public static @NotNull String getProgress(String uri, int scanId, Secret apiKey) throws IOException
uri
- the uriscanId
- the scan idapiKey
- the api keyIOException
- the io exception@NotNull public static @NotNull String getRisk(String uri, int scanId, Secret apiKey) throws IOException
uri
- the uriscanId
- the scan idapiKey
- the api keyIOException
- the io exception@NotNull public static @NotNull String check(String uri, Secret apiKey) throws IOException
uri
- the uriapiKey
- the api keyIOException
- the io exception@NotNull public static @NotNull String runRequest(String uri, Secret apiKey, String input) throws IOException
uri
- the uriapiKey
- the api keyinput
- the inputIOException
- the io exception@NotNull public static @NotNull String upload(String title, String uri, Secret apiKey, String fileName, byte[] fileContent, String scanProfile, String platform, Integer scanCredential) throws IOException
title
- scan titleuri
- the uriapiKey
- the api keyfileContent
- the filefileName
- the filescanProfile
- the scanProfileplatform
- the platformIOException
- the io exception@NotNull public static @NotNull String createTestCredential(String uri, List<Credentials> credential, Secret apiKey) throws IOException
uri
- The API urlcredential
- the list os credentials to addapiKey
- the api key to authenticateIOException
- the io exceptionCopyright © 2016–2025. All rights reserved.