use of org.platformlayer.auth.v1.CheckServiceAccessRequest in project platformlayer by platformlayer.
the class PlatformLayerAuthAdminClient method checkServiceAccess.
public String checkServiceAccess(CertificateChainInfo chain) {
String url = "services/check";
CheckServiceAccessRequest request = new CheckServiceAccessRequest();
request.setChain(chain);
try {
CheckServiceAccessResponse response = doSimpleXmlRequest(HttpMethod.POST, url, request, CheckServiceAccessResponse.class);
return response.getServiceAccount();
} catch (RestClientException e) {
throw new IllegalArgumentException("Error while checking service access", e);
}
}
Aggregations