@Override public String toString() { try { return "P-" + getResource(); } catch (Exception e) { return "P-" + Hex.toHexString(sha); } }
public String toString() { try { return "P-" + getResource(); } catch (Exception e) { return "P-" + Hex.toHexString(sha); } }
@Override public void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception { StringHandler.string(app, Hex.toHexString((byte[]) object)); }
@Override public void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception { StringHandler.string(app, Hex.toHexString((byte[]) object)); }
@Override void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception { StringHandler.string(app, Hex.toHexString((byte[]) object)); }
@Override public String toString() { return String.format("%s(d=%s)", getAlgorithm(), Hex.toHexString(digest)); }
public String toString() { try { return "P-" + getResource(); } catch (Exception e) { return "P-" + Hex.toHexString(sha); } }
@Override public String toString() { return String.format("%s(d=%s)", getAlgorithm(), Hex.toHexString(digest)); }
@Override void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception { StringHandler.string(app, Hex.toHexString((byte[]) object)); }
@Override public void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception { StringHandler.string(app, Hex.toHexString((byte[]) object)); }
@Override public void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception { StringHandler.string(app, Hex.toHexString((byte[]) object)); }
@Override public String toString() { try { return "P-" + getResource(); } catch (Exception e) { return "P-" + Hex.toHexString(sha); } }
/** * Set the private key in the settings for this machine * * @param hex * @param data * @return * @throws Exception */ private String tos(boolean hex, byte[] data) { return data.length + " : " + (hex ? Hex.toHexString(data) : Base64.encodeBase64(data)); }
@Override public String toString() { return String.format("%s(d=%s)", getAlgorithm(), Hex.toHexString(digest)); }
public String hash(String password) throws Exception { switch (algorithm) { default : case PBKDF2WithHmacSHA1 : byte[] hash = pbkdf2(password.toCharArray(), salt, iterations, 24); return Hex.toHexString(hash); } }
@Override public void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception { StringHandler.string(app, Hex.toHexString((byte[]) object)); }
/** * Delete a cache entry */ public boolean deleteCache(byte[] id) throws Exception { File dir = IO.getFile(cache, Hex.toHexString(id)); if (dir.isDirectory()) { IO.delete(dir); return true; } return false; }
/** * Delete a cache entry */ @Override public boolean deleteCache(byte[] id) throws Exception { File dir = IO.getFile(cache, Hex.toHexString(id)); if (dir.isDirectory()) { IO.delete(dir); return true; } return false; }
/** * Delete a cache entry */ @Override public boolean deleteCache(byte[] id) throws Exception { File dir = IO.getFile(cache, Hex.toHexString(id)); if (dir.isDirectory()) { IO.delete(dir); return true; } return false; }
/** * Delete a cache entry */ public boolean deleteCache(byte[] id) throws Exception { File dir = IO.getFile(cache, Hex.toHexString(id)); if (dir.isDirectory()) { IO.delete(dir); return true; } return false; }