Interface Tokenizer


@RegisterRestClient(configKey="pdv-api") public interface Tokenizer

Personal Data Vault client.

To use this:

  • Add io.quarkus:quarkus-rest-client-jackson to the dependencies.
  • Add quarkus.rest-client.pdv-api.url to application.properties with the URL to reach PDV, e.g.: https://api.uat.tokenizer.pdv.pagopa.it/tokenizer/v1/tokens
  • Add pdv-api.api-key to application.properties with the API-key of PDV.
Author:
Antonio Tarricone
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<PersonalData>
    detokenize(String tokenValue)
    Puts in clear protected personal data.
    io.smallrye.mutiny.Uni<Token>
    tokenize(PersonalData personalData)
    Protects personal data.
  • Method Details

    • tokenize

      @PUT @Produces("application/json") @Consumes("application/json") @ClientHeaderParam(name="x-api-key", value="${pdv-api.api-key}", required=true) io.smallrye.mutiny.Uni<Token> tokenize(PersonalData personalData)

      Protects personal data.

      Parameters:
      personalData - PersonalData
      Returns:
      Token
    • detokenize

      @GET @Path("/{token}") @Produces("application/json") @ClientHeaderParam(name="x-api-key", value="${pdv-api.api-key}", required=true) io.smallrye.mutiny.Uni<PersonalData> detokenize(@PathParam("token") String tokenValue)

      Puts in clear protected personal data.

      Parameters:
      tokenValue - Token
      Returns:
      PersonalData