Class PersonalCertificateResource
java.lang.Object
fr.gouv.vitam.security.internal.rest.resource.PersonalCertificateResource
-
Constructor Summary
ConstructorDescriptionPersonalCertificateResource
(PermissionService permissionService, PersonalCertificateService personalCertificateService) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
void
checkPersonalCertificate
(byte[] certificate, String permission) Check personal certificateisPersonalCertificateRequiredForPermission
(String permission) Gets whether personal certificate if required for the provided endpoint permission
-
Constructor Details
-
PersonalCertificateResource
public PersonalCertificateResource(PermissionService permissionService, PersonalCertificateService personalCertificateService) Constructor- Parameters:
permissionService
-personalCertificateService
-
-
-
Method Details
-
checkPersonalCertificate
@Path("/personal-certificate-check/{permission}") @GET @Consumes("application/octet-stream") public void checkPersonalCertificate(byte[] certificate, @PathParam("permission") 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") 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()
-