Class PersonalCertificateResource
- java.lang.Object
-
- fr.gouv.vitam.security.internal.rest.resource.PersonalCertificateResource
-
@Path("/v1/api/personalCertificate") public class PersonalCertificateResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PersonalCertificateResource(PermissionService permissionService, PersonalCertificateService personalCertificateService)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
checkCertificatesExpiration()
void
checkPersonalCertificate(byte[] certificate, java.lang.String permission)
Check personal certificateIsPersonalCertificateRequiredModel
isPersonalCertificateRequiredForPermission(java.lang.String permission)
Gets whether personal certificate if required for the provided endpoint permission
-
-
-
Constructor Detail
-
PersonalCertificateResource
public PersonalCertificateResource(PermissionService permissionService, PersonalCertificateService personalCertificateService)
Constructor- Parameters:
permissionService
-personalCertificateService
-
-
-
Method Detail
-
checkPersonalCertificate
@Path("/personal-certificate-check/{permission}") @GET @Consumes("application/octet-stream") public void checkPersonalCertificate(byte[] certificate, @PathParam("permission") java.lang.String permission) throws LogbookClientException, InvalidParseOperationException, PersonalCertificateException
Check personal certificate- Parameters:
certificate
- the certificatepermission
- the permission- Throws:
LogbookClientServerException
LogbookClientAlreadyExistsException
LogbookClientBadRequestException
InvalidParseOperationException
PersonalCertificateException
LogbookClientException
-
isPersonalCertificateRequiredForPermission
@GET @Path("/permission-check/{permission}") @Produces("application/json") public IsPersonalCertificateRequiredModel isPersonalCertificateRequiredForPermission(@PathParam("permission") java.lang.String permission)
Gets whether personal certificate if required for the provided endpoint permission- Parameters:
permission
- the endpoint permission- Returns:
- the requirement as a IsPersonalCertificateRequiredModel object
-
checkCertificatesExpiration
@GET @Path("/check-expiration") @Produces("application/json") public javax.ws.rs.core.Response checkCertificatesExpiration()
-
-