Class IdentityResource
- java.lang.Object
-
- fr.gouv.vitam.security.internal.rest.resource.IdentityResource
-
@Path("/v1/api/identity") public class IdentityResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IdentityResource(IdentityService identityService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
checkCertificatesExpiration()
javax.ws.rs.core.Response
contextIsUsed(java.lang.String contextId)
IdentityModel
findIdentityByCertificate(byte[] certificate)
-
-
-
Constructor Detail
-
IdentityResource
public IdentityResource(IdentityService identityService)
- Parameters:
identityService
-
-
-
Method Detail
-
findIdentityByCertificate
@GET @Consumes("application/octet-stream") @Produces("application/json") public IdentityModel findIdentityByCertificate(byte[] certificate) throws InvalidParseOperationException, java.security.cert.CertificateException
- Parameters:
certificate
-- Returns:
- Throws:
java.security.cert.CertificateException
InvalidParseOperationException
-
contextIsUsed
@GET @Path("context/{contextId}") @Produces("application/json") public javax.ws.rs.core.Response contextIsUsed(@PathParam("contextId") java.lang.String contextId)
- Parameters:
contextId
-- Returns:
- true if context is used
-
checkCertificatesExpiration
@GET @Path("/check-expiration") @Produces("application/json") public javax.ws.rs.core.Response checkCertificatesExpiration()
-
-