(Object request)
| 493 | } |
| 494 | |
| 495 | private static byte[] toBytes(Object request) { |
| 496 | Object v = (request); |
| 497 | if (v == null) return new byte[0]; |
| 498 | if (v instanceof byte[] b) return b; |
| 499 | if (v instanceof String s) return s.getBytes(StandardCharsets.UTF_8); |
| 500 | return String.valueOf(v).getBytes(StandardCharsets.UTF_8); |
| 501 | } |
| 502 | |
| 503 | private static BigInteger toPrivateKey(Object secret) { |
| 504 | Object v = (secret); |
no outgoing calls
no test coverage detected