All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.perimeterx.internals.PXS2SValidator Maven / Gradle / Ivy

package com.perimeterx.internals;

import com.perimeterx.http.PXClient;
import com.perimeterx.models.exceptions.PXException;
import com.perimeterx.models.httpmodels.RiskRequest;
import com.perimeterx.models.httpmodels.RiskResponse;

import java.io.IOException;

/**
 * High level Abstracted interface for calling PerimeterX servers
 * 

* Created by shikloshi on 04/07/2016. */ public class PXS2SValidator { private PXClient pxClient; public PXS2SValidator(PXClient pxClient) { this.pxClient = pxClient; } /** * Verify if request is valid or not * * @param request - request per context for querying server * @throws PXException */ public RiskResponse verify(RiskRequest request) throws PXException { RiskResponse response; try { response = pxClient.riskApiCall(request); } catch (IOException e) { throw new PXException(e); } return response; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy