allowedCerticatesResult element

Type: allowedCertificatesResult
Namespace: http://eurotech.com/edc/2.0
XML Schema: edc.xsd

AllowedCerticates is a container for a list of AllowedCerticate returned by a list allowed certificate call. It contains the list of requested AllowedCerticates and a flag signaling whether the limit for the maximum number of returned entities has been reached. If limitExceeded is set, the client is requested to paginate through the result by moving the offset forward and issue a new request to get more data.

Example to get all devices:

String apiPath = "allowedCerticates.xml";
WebResource apisWeb = client.resource(API_URL).path(apiPath);

AllowedCerticatesResult result;
int offset = 0;
do {
// if the "limit" queryParam is not initialized, limit default value = 50
// if the "offset" queryParam is not initialized, offset default value = 0
apisWeb = apisWeb.queryParam("limit", "" + limit);
if (offset > 0)
apisWeb = apisWeb.queryParam("offset", "" + offset);
result = apisWeb.get(AllowedCerticatesResult.class);
offset += limit;
} while (result.isLimitExceeded()):

Example XML

<?xml version="1.0" encoding="UTF-8"?> <allowedCerticatesResult xmlns="http://eurotech.com/edc/2.0"> <limitExceeded>...</limitExceeded> <allowedCertificate> <id xmlns="">...</id> <certificate xmlns="">...</certificate> <accountId xmlns="">...</accountId> <version xmlns="">...</version> <serial xmlns="">...</serial> <algorithm xmlns="">...</algorithm> <subject xmlns="">...</subject> <issuer xmlns="">...</issuer> <notBefore xmlns="">...</notBefore> <notAfter xmlns="">...</notAfter> <createdOn xmlns="">...</createdOn> <createdBy xmlns="">...</createdBy> <modifiedOn xmlns="">...</modifiedOn> <modifiedBy xmlns="">...</modifiedBy> <name xmlns="">...</name> <optlock xmlns="">...</optlock> <pkiStatus xmlns="">...</pkiStatus> <pkiAllowedCertificateStatus xmlns="">...</pkiAllowedCertificateStatus> <digest xmlns="">...</digest> </allowedCertificate> <allowedCertificate> <!--...--> </allowedCertificate> <!--...more "allowedCertificate" elements...--> </allowedCerticatesResult>

Example JSON

{ "limitExceeded" : false, "allowedCertificate" : [ { "pkiStatus" : "VALID", "pkiAllowedCertificateStatus" : "PENDING_INSTALL", "digest" : "...", "id" : ..., "certificate" : "...", "accountId" : ..., "version" : ..., "serial" : "...", "algorithm" : "...", "subject" : "...", "issuer" : "...", "notBefore" : "...", "notAfter" : "...", "createdOn" : "...", "createdBy" : ..., "modifiedOn" : "...", "modifiedBy" : ..., "name" : "...", "optlock" : ... }, ... ] }