public class CertificateImpl extends Object implements Certificate
| Constructor and Description |
|---|
CertificateImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAllCertificates(String acceptHeader,
int startIndex,
int length)
Get all certificates in a paginated manner.
|
javax.ws.rs.core.Response |
getCertificate(String acceptHeader,
String serialNumber)
Get a certificate when the serial number is given.
|
javax.ws.rs.core.Response |
removeCertificate(String acceptHeader,
String serialNumber) |
javax.ws.rs.core.Response |
saveCertificate(String acceptHeader,
EnrollmentCertificate[] enrollmentCertificates)
Save a list of certificates and relevant information in the database.
|
public javax.ws.rs.core.Response saveCertificate(@HeaderParam(value="Accept")
String acceptHeader,
EnrollmentCertificate[] enrollmentCertificates)
saveCertificate in interface CertificateenrollmentCertificates - List of all the certificates which includes the tenant id, certificate as
a pem and a serial number.public javax.ws.rs.core.Response getCertificate(@HeaderParam(value="Accept")
String acceptHeader,
String serialNumber)
getCertificate in interface CertificateserialNumber - serial of the certificate needed.public javax.ws.rs.core.Response getAllCertificates(@HeaderParam(value="Accept")
String acceptHeader,
int startIndex,
int length)
throws MDMAPIException
getAllCertificates in interface CertificatestartIndex - index of the first record to be fetchedlength - number of records to be fetched starting from the start index.MDMAPIExceptionpublic javax.ws.rs.core.Response removeCertificate(@HeaderParam(value="Accept")
String acceptHeader,
String serialNumber)
throws MDMAPIException
removeCertificate in interface CertificateMDMAPIExceptionCopyright © 2016 WSO2. All rights reserved.