[prev in list] [next in list] [prev in thread] [next in thread]
List: wsas-java-dev
Subject: Re: [Dev] Achieving encryption Decryption in api manager 2.6.0
From: Priyadarshini Punjabi <priyadarshinipunjabi () gmail ! com>
Date: 2019-12-05 6:42:09
Message-ID: CAGwOrb8OgxOyfza7MGS_VP0vMY0uf8RMuTz_ys5hxPog8SNiAA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hey thanks but my call is not going to my backend microservice when i am
injecting mediation sequence.My sequence is as follows:
<sequence xmlns="http://ws.apache.org/ns/synapse" name="TestSequence2">
<property name="JsonPayload" expression="json-eval($.)"></property>
<class name="com.custom.json.payload.CustomJsonPayloadSetter"></class>
<log level="custom">
<property name="json" expression="get-property('JsonPayload')"/>
</log>
</sequence>
And my backend microservice is as follows:
@POST
@Path("/testService")
@Produces({"text/plain"})
public Response testService(@RequestBody JsonObject json){
return
Response.status(Response.Status.OK).entity("Hello World").build();
}
Can you please tell me where I have not configured properly?
Many thanks,
Priyadarshini
On Thu, 21 Nov 2019, 10:50 Fazlan Nazeem, <fazlann@wso2.com> wrote:
> Hi Priyadarshini,
>
> If you need to customize the encryption of the payload, you should be able
> to do it by implementing a class mediator with your custom encryption logic
> and engaging it in the request path via a mediation sequence.
>
> On Wed, Nov 20, 2019 at 6:56 PM Priyadarshini Punjabi <
> priyadarshinipunjabi@gmail.com> wrote:
>
>> Hi,
>>
>> Can we achieve custom encryption decryption of payload of target backend
>> service in wso2 api manager 2.6.0?
>>
>>
>> Many thanks,
>> Priyadarshini
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Thanks & Regards,
>
> *Fazlan Nazeem | *Associate Technical Lead | WSO2 Inc
> Mobile : +94772338839 | fazlann@wso2.com
>
>
>
[Attachment #5 (text/html)]
<div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">Hey thanks but \
my call is not going to my backend microservice when i am injecting mediation \
sequence.My sequence is as follows:</span><div dir="auto" \
style="font-family:sans-serif;font-size:12.8px"><pre \
style="white-space:pre-wrap;font-size:11px;background-color:rgb(255,255,255)"><sequence \
xmlns="<a href="http://ws.apache.org/ns/synapse" \
style="text-decoration-line:none;color:rgb(0,0,204);outline:none">http://ws.apache.org/ns/synapse</a>" \
name="TestSequence2"> <property name="JsonPayload" \
expression="json-eval($.)"></property>
<class name="com.custom.json.payload.CustomJsonPayloadSetter"></class> \
<log level="custom">
<property name="json" \
expression="get-property('JsonPayload')"/> </log>
</sequence>
</pre><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">And \
my backend microservice is as follows:</div><div dir="auto" \
style="font-family:sans-serif;font-size:12.8px"><pre \
style="white-space:pre-wrap;font-size:11px;background-color:rgb(255,255,255)"> @POST \
@Path("/testService") @Produces({"text/plain"})
public Response testService(@RequestBody JsonObject json){
return Response.status(Response.Status.OK).entity("Hello \
World").build(); }</pre><pre \
style="white-space:pre-wrap;font-size:11px;background-color:rgb(255,255,255)"><br>Can \
you please tell me where I have not configured properly?<br></pre><pre \
style="white-space:pre-wrap;font-size:11px;background-color:rgb(255,255,255)"><br></pre><pre \
style="white-space:pre-wrap;font-size:11px;background-color:rgb(255,255,255)"><br></pre><pre \
style="white-space:pre-wrap;font-size:11px;background-color:rgb(255,255,255)"></pre></div><span \
style="font-family:sans-serif;font-size:12.8px">Many thanks,</span><div dir="auto" \
style="font-family:sans-serif;font-size:12.8px">Priyadarshini</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 21 Nov 2019, 10:50 \
Fazlan Nazeem, <<a href="mailto:fazlann@wso2.com">fazlann@wso2.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi \
Priyadarshini,<div><br></div><div>If you need to customize the encryption of the \
payload, you should be able to do it by implementing a class mediator with your \
custom encryption logic and engaging it in the request path via a mediation sequence. \
</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, \
Nov 20, 2019 at 6:56 PM Priyadarshini Punjabi <<a \
href="mailto:priyadarshinipunjabi@gmail.com" target="_blank" \
rel="noreferrer">priyadarshinipunjabi@gmail.com</a>> wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Can we \
achieve custom encryption decryption of payload of target backend service in wso2 api \
manager 2.6.0?</div><div><br></div><div><br></div><div>Many \
thanks,</div><div>Priyadarshini </div></div> \
_______________________________________________<br> Dev mailing list<br>
<a href="mailto:Dev@wso2.org" target="_blank" rel="noreferrer">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" rel="noreferrer noreferrer" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div><span><font color="#888888">Thanks & \
Regards,</font></span></div><div><span><font \
color="#888888"><br></font></span></div><div dir="ltr"><span><font \
color="#888888"><b>Fazlan Nazeem | </b></font></span><span \
style="color:rgb(136,136,136)">Associate Technical Lead | </span><span \
style="color:rgb(136,136,136)">WSO2 Inc</span></div><div dir="ltr"><span><font \
color="#888888"><div>Mobile : +94772338839 | <a href="mailto:fazlann@wso2.com" \
target="_blank" rel="noreferrer">fazlann@wso2.com</a></div><div><a \
rel="noreferrer"><img \
src="https://c.content.wso2.com/signatures/wso2-signature-general.png" width="200" \
height="35"><br></a><br></div></font></span></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>
--00000000000064e23b0598ef1076--
["Capture.PNG" (image/png)]
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic