|
|
|
@ -64,6 +64,12 @@ import javax.ws.rs.core.Response;
|
|
|
|
|
description = "Deleting an SSL Certificate",
|
|
|
|
|
key = "perm:admin:certificates:delete",
|
|
|
|
|
permissions = {"/device-mgt/admin/certificates/delete"}
|
|
|
|
|
),
|
|
|
|
|
@Scope(
|
|
|
|
|
name = "Verifying an SSL Certificate",
|
|
|
|
|
description = "Verifying an SSL Certificate",
|
|
|
|
|
key = "perm:admin:certificates:verify",
|
|
|
|
|
permissions = {"/device-mgt/admin/certificates/verify"}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
@ -338,84 +344,8 @@ public interface CertificateManagementAdminService {
|
|
|
|
|
defaultValue = "12438035315552875930")
|
|
|
|
|
@PathParam("serialNumber") String serialNumber);
|
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// * Verify IOS Certificate for the API security filter
|
|
|
|
|
// *
|
|
|
|
|
// * @param certificate to be verified as a String
|
|
|
|
|
// * @return Status of the certificate verification.
|
|
|
|
|
// */
|
|
|
|
|
// @POST
|
|
|
|
|
// @Path("/verify/ios")
|
|
|
|
|
// @ApiOperation(
|
|
|
|
|
// consumes = MediaType.APPLICATION_JSON,
|
|
|
|
|
// produces = MediaType.APPLICATION_JSON,
|
|
|
|
|
// httpMethod = "POST",
|
|
|
|
|
// value = "Verify IOS SSL certificate",
|
|
|
|
|
// notes = "Verify IOS Certificate for the API security filter.\n",
|
|
|
|
|
// tags = "Certificate Management")
|
|
|
|
|
// @ApiResponses(
|
|
|
|
|
// value = {
|
|
|
|
|
// @ApiResponse(
|
|
|
|
|
// code = 200,
|
|
|
|
|
// message = "Return the status of the IOS certificate verification.",
|
|
|
|
|
// responseHeaders = {
|
|
|
|
|
// @ResponseHeader(
|
|
|
|
|
// name = "Content-Type",
|
|
|
|
|
// description = "The content type of the body")}),
|
|
|
|
|
// @ApiResponse(
|
|
|
|
|
// code = 400,
|
|
|
|
|
// message = "Bad Request. \n Invalid request or validation error.",
|
|
|
|
|
// response = ErrorResponse.class)
|
|
|
|
|
// })
|
|
|
|
|
// Response verifyIOSCertificate(
|
|
|
|
|
// @ApiParam(
|
|
|
|
|
// name = "certificate",
|
|
|
|
|
// value = "The properties to verify certificate. It includes the following: \n" +
|
|
|
|
|
// "serial: The unique ID of the certificate. (optional) \n" +
|
|
|
|
|
// "pem: mdm-signature of the certificate",
|
|
|
|
|
// required = true) EnrollmentCertificate certificate);
|
|
|
|
|
//
|
|
|
|
|
// /**
|
|
|
|
|
// * Verify Android Certificate for the API security filter
|
|
|
|
|
// *
|
|
|
|
|
// * @param certificate to be verified as a String
|
|
|
|
|
// * @return Status of the certificate verification.
|
|
|
|
|
// */
|
|
|
|
|
// @POST
|
|
|
|
|
// @Path("/verify/android")
|
|
|
|
|
// @ApiOperation(
|
|
|
|
|
// consumes = MediaType.APPLICATION_JSON,
|
|
|
|
|
// produces = MediaType.APPLICATION_JSON,
|
|
|
|
|
// httpMethod = "POST",
|
|
|
|
|
// value = "Verify Android SSL certificate",
|
|
|
|
|
// notes = "Verify Android Certificate for the API security filter.\n",
|
|
|
|
|
// tags = "Certificate Management")
|
|
|
|
|
// @ApiResponses(
|
|
|
|
|
// value = {
|
|
|
|
|
// @ApiResponse(
|
|
|
|
|
// code = 200,
|
|
|
|
|
// message = "Return the status of the Android certificate verification.",
|
|
|
|
|
// responseHeaders = {
|
|
|
|
|
// @ResponseHeader(
|
|
|
|
|
// name = "Content-Type",
|
|
|
|
|
// description = "The content type of the body")}),
|
|
|
|
|
// @ApiResponse(
|
|
|
|
|
// code = 400,
|
|
|
|
|
// message = "Bad Request. \n Invalid request or validation error.",
|
|
|
|
|
// response = ErrorResponse.class)
|
|
|
|
|
// })
|
|
|
|
|
// Response verifyAndroidCertificate(
|
|
|
|
|
// @ApiParam(
|
|
|
|
|
// name = "certificate",
|
|
|
|
|
// value = "The properties to verify certificate. It includes the following: \n" +
|
|
|
|
|
// "serial: The unique ID of the certificate. (optional) \n" +
|
|
|
|
|
// "pem: pem String of the certificate",
|
|
|
|
|
// required = true) EnrollmentCertificate certificate);
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Verify Android Certificate for the API security filter
|
|
|
|
|
* Verify Certificate for the API security filter
|
|
|
|
|
*
|
|
|
|
|
* @param certificate to be verified as a String
|
|
|
|
|
* @return Status of the certificate verification.
|
|
|
|
@ -426,14 +356,20 @@ public interface CertificateManagementAdminService {
|
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
|
httpMethod = "POST",
|
|
|
|
|
value = "Verify Android SSL certificate",
|
|
|
|
|
notes = "Verify Android Certificate for the API security filter.\n",
|
|
|
|
|
tags = "Certificate Management")
|
|
|
|
|
value = "Verify SSL certificate",
|
|
|
|
|
notes = "Verify Certificate for the API security filter.\n",
|
|
|
|
|
tags = "Certificate Management",
|
|
|
|
|
extensions = {
|
|
|
|
|
@Extension(properties = {
|
|
|
|
|
@ExtensionProperty(name = SCOPE, value = "perm:admin:certificates:verify")
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
@ApiResponses(
|
|
|
|
|
value = {
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
code = 200,
|
|
|
|
|
message = "Return the status of the Android certificate verification.",
|
|
|
|
|
message = "Return the status of the certificate verification.",
|
|
|
|
|
responseHeaders = {
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
name = "Content-Type",
|
|
|
|
|