public key java bytebuffer to string code example Example: feignException byteBuffer to string String s = StandardCharsets.UTF_8.decode(byteBuffer).toString();