private String base64Decode ( String base64Value ) { try { byte [ ] decodedCookieBytes = Base64 . getDecoder ( ) . decode ( base64Value ) ; return new String ( decodedCookieBytes ) ; } catch ( Exception ex ) { logger . debug ( "Unable to Base64 decode value: " + base64Value ) ; return null ; } }
Decode the value using Base64 .