Class PrismaCloudServiceImpl
- java.lang.Object
-
- io.prismacloud.iac.commons.service.impl.PrismaCloudServiceImpl
-
- All Implemented Interfaces:
PrismaCloudService
public class PrismaCloudServiceImpl extends Object implements PrismaCloudService
- Author:
- Sacumen (www.sacumen.com) PrismaCloudServiceImpl is the implementation of the all services defined by PrismaCloudService
-
-
Constructor Summary
Constructors Constructor Description PrismaCloudServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccessToken(PrismaCloudConfiguration prismaCloudConfiguration)This method returns the valid token using access_key and secret key.StringgetScanDetails(EnvVars envVars, PrismaCloudConfiguration prismaCloudConfiguration, FilePath filePath)This method scan the zip file and returns JSON as string.StringgetScanResult(org.apache.http.impl.client.CloseableHttpClient client, PrismaCloudConfiguration prismaCloudConfiguration, FilePath filePath)Below method is used to get scan details from prisma clod API
-
-
-
Method Detail
-
getAccessToken
public String getAccessToken(PrismaCloudConfiguration prismaCloudConfiguration) throws IOException
This method returns the valid token using access_key and secret key.- Specified by:
getAccessTokenin interfacePrismaCloudService- Throws:
IOException
-
getScanDetails
public String getScanDetails(EnvVars envVars, PrismaCloudConfiguration prismaCloudConfiguration, FilePath filePath) throws IOException, InterruptedException
This method scan the zip file and returns JSON as string.- Specified by:
getScanDetailsin interfacePrismaCloudService- Throws:
IOExceptionInterruptedException
-
getScanResult
public String getScanResult(org.apache.http.impl.client.CloseableHttpClient client, PrismaCloudConfiguration prismaCloudConfiguration, FilePath filePath) throws IOException, InterruptedException
Below method is used to get scan details from prisma clod API- Throws:
IOExceptionInterruptedException
-
-