Class CryptoResource

java.lang.Object
org.apache.camel.quarkus.component.crypto.it.CryptoResource

@Path("/crypto") public class CryptoResource extends Object
  • Field Details

    • MESSAGE

      public static final String MESSAGE
      See Also:
    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
  • Constructor Details

    • CryptoResource

      public CryptoResource()
  • Method Details

    • sign

      @Path("/signature/sign") @POST public byte[] sign(@QueryParam("raw") boolean raw)
    • verify

      @Path("/signature/verify") @POST @Consumes("text/plain") public jakarta.ws.rs.core.Response verify(@QueryParam("raw") boolean raw, String signature)
    • encryptPayload

      @Path("/encrypt") @POST public byte[] encryptPayload(String payload)
    • decryptPgpPayload

      @Path("/decrypt") @POST @Produces("text/plain") public String decryptPgpPayload(byte[] payload)
    • encryptPgpPayload

      @Path("/encrypt/pgp") @POST public byte[] encryptPgpPayload(String payload)
    • decryptPayload

      @Path("/decrypt/pgp") @POST @Produces("text/plain") public String decryptPayload(byte[] payload)
    • keyStore

      @Produces public KeyStore keyStore() throws Exception
      Throws:
      Exception
    • myPrivateKey

      @Produces @Named public PrivateKey myPrivateKey(KeyStore keyStore) throws Exception
      Throws:
      Exception
    • myPublicKey

      @Produces @Named public PublicKey myPublicKey(KeyStore keyStore) throws Exception
      Throws:
      Exception
    • customSecureRandom

      @Produces @Named public SecureRandom customSecureRandom()