Package fr.gouv.vitam.security.internal.rest.resource

# Class IdentityResource

java.lang.Object
fr.gouv.vitam.security.internal.rest.resource.IdentityResource

@Path("/v1/api/identity") public class IdentityResource extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IdentityResource(IdentityService identityService)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `jakarta.ws.rs.core.Response`
  `checkCertificatesExpiration()`
  `jakarta.ws.rs.core.Response`
  `contextIsUsed(String contextId)`
  `IdentityModel`
  `findIdentityByCertificate(byte[] certificate)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### IdentityResource

    public IdentityResource(IdentityService identityService)
    Parameters:
      `identityService` -

- ## Method Details

  - ### findIdentityByCertificate

    @GET @Consumes("application/octet-stream") @Produces("application/json") public IdentityModel findIdentityByCertificate(byte[] certificate) throws InvalidParseOperationException, CertificateException
    Parameters:
      `certificate` -
    Returns:
    Throws:
      `CertificateException`
      `InvalidParseOperationException`

  - ### contextIsUsed

    @GET @Path("context/{contextId}") @Produces("application/json") public jakarta.ws.rs.core.Response contextIsUsed(@PathParam("contextId") String contextId)
    Parameters:
      `contextId` -
    Returns:
      true if context is used

  - ### checkCertificatesExpiration

    @GET @Path("/check-expiration") @Produces("application/json") public jakarta.ws.rs.core.Response checkCertificatesExpiration()