@Override public String toString(Token token) { AtlasBytesToken bytesToken = (AtlasBytesToken) token; return Hex.bytesToHex((byte[]) bytesToken.getTokenValue()); }
public static String toString(byte[] hash) { if (hash == null) return "null"; return "[" + Hex.bytesToHex(hash) + "]"; }
@Override public String toString() { return Hex.bytesToHex(token); }
public static String toString(byte[] hash) { if (hash == null) return "null"; return "[" + Hex.bytesToHex(hash) + "]"; }
public static String toString(byte[] hash) { if (hash == null) return "null"; return "[" + Hex.bytesToHex(hash) + "]"; }
public static String bytesToHex(byte... bytes) { return bytesToHex(bytes, 0, bytes.length); }
public String toString(Token token) { BytesToken bytesToken = (BytesToken) token; return Hex.bytesToHex(bytesToken.token); }
@Override public String toString() { return Hex.bytesToHex(bytes); } }
@Override public String toString() { return Hex.bytesToHex(token); }
public String toString(Token token) { BytesToken bytesToken = (BytesToken) token; return Hex.bytesToHex(bytesToken.token); }
@Override public String toString() { return Hex.bytesToHex(bytes); } }
public static String toString(byte[] hash) { if (hash == null) return "null"; return "[" + Hex.bytesToHex(hash) + "]"; }
@Override public String toString() { return Hex.bytesToHex(token); }
public String toString(Token token) { BytesToken bytesToken = (BytesToken) token; return Hex.bytesToHex(bytesToken.token); }
@Override public String toString() { return Hex.bytesToHex(bytes); } }
public Map<String, String> toHeaderParameters() { Map<String, String> map = new HashMap<>(3); // add compression options, someday ... if (tdeOptions.enabled) { map.put(ENCRYPTION_CIPHER, tdeOptions.cipher); map.put(ENCRYPTION_KEY_ALIAS, tdeOptions.key_alias); if (iv != null && iv.length > 0) map.put(ENCRYPTION_IV, Hex.bytesToHex(iv)); } return map; }
private String base(String value) { try { byte[] bytes = Hex.hexToBytes(value.replaceFirst("0x", "")); return Hex.bytesToHex(bytes); } catch (NumberFormatException e) { throw new IndexException(e, "Field '{}' requires an hex string, but found '{}'", field, value); } } }
protected Map<String, String> additionalHeaderParameters() { Map<String, String> map = encryptionContext.toHeaderParameters(); map.put(EncryptionContext.ENCRYPTION_IV, Hex.bytesToHex(cipher.getIV())); return map; }
protected Map<String, String> additionalHeaderParameters() { Map<String, String> map = encryptionContext.toHeaderParameters(); map.put(EncryptionContext.ENCRYPTION_IV, Hex.bytesToHex(cipher.getIV())); return map; }
private static String thriftToString(TBase object) { assert object != null; // this is so awful it's kind of cool! TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory()); try { return Hex.bytesToHex(serializer.serialize(object)); } catch (TException e) { throw new RuntimeException(e); } }