Hi All, AFAIU char[] is not compliant with neither QueryParam nor FormParam according to [1]. Therefore from MSF4J (as a JAXRS engine) IMHO we couldn't support char[]. What if we use StringBuilder instead of String. Then we can delete the StringBuilder as we want. WDYT?
[1] - http://docs.oracle.com/javaee/7/api/javax/ws/rs/FormParam.html Thanks On Thu, Mar 23, 2017 at 3:10 PM, Denuwanthi De Silva <denuwan...@wso2.com> wrote: > Hi, > > I have a micro service which calls a password validation back end. > For that, it passes the password as microservice parameter. > > Due to security concerns we need to pass password as a char array instead > of a String[1]. > > The password value is retrieved using jquery input field call and passed > as a char array. > Then it is passed to the microservice via an ajax call. But the > micorservice method Params does not support char[] type[1]. > > Is there a way we can handle this without involving String type in the > intermediate level? > > > > [1]https://nvisium.com/blog/2016/03/31/secure-password-strings/ > [2]https://jersey.java.net/apidocs/2.7/jersey/javax/ws/rs/QueryParam.html > > > Thanks, > -- > Denuwanthi De Silva > Senior Software Engineer; > WSO2 Inc.; http://wso2.com, > Email: denuwan...@wso2.com > Blog: https://denuwanthi.wordpress.com/ > -- Thusitha Dayaratne WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com About http://about.me/thusithathilina <http://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev