Himanshu Jain
Himanshu Jain
@johnmcclean-aol I think i tried the last option , i just did now again, here is the snippet ``` Try.withCatch(() -> decodeBase64(token)) .onFail(e -> LOG.error("error in decoding base64 token string:{}",e))...
``` com.aol.cyclops cyclops-try 7.2.3 ``` I think this could IDE intellij i am using but let me run it then i will update you.
@johnmcclean-aol do you how to apply parallel operation on result return after successful flatmap operation and then collect them ?
``` Try jsonString = Try.withCatch(() -> decodeBase64(token)) .onFail(e -> LOG.error("error in decoding base64 token string:{}",e)) .flatMap(v -> Try.withCatch(()-> (JSONObject)(new JSONParser()).parse(v))) .onFail(e -> LOG.error("error in parsing token string:{}",e)) .map(v -> convertToMap(new...
@johnmcclean-aol ``` public JwtUserDto parseToken(String token) throws JwtTokenMalformedException { JwtUserDto u = null; Gson gson = new Gson(); Map claimsSets = Try.withCatch(() -> decodeBase64(token)) .onFail(e -> LOG.error("error in decoding base64...
Looks good to me.
@duanshiqiang : I have a question probably tangential to your pull request, are you using this Xacml implementation ? Can you give me a few more information as follows 1)...