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 String
getAccessToken(PrismaCloudConfiguration prismaCloudConfiguration)
This method returns the valid token using access_key and secret key.String
getScanDetails(EnvVars envVars, PrismaCloudConfiguration prismaCloudConfiguration, FilePath filePath)
This method scan the zip file and returns JSON as string.String
getScanResult(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:
getAccessToken
in 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:
getScanDetails
in interfacePrismaCloudService
- Throws:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
-