class PathDigest implements Function<PathMetadata, String> {

  @Override
  public String apply(PathMetadata pathDescriptor) {
    byte[] checksum = messageDigest.digest(serialize(pathDescriptor));
    return Base64.encodeBase64String(checksum);
  }

  public  PathDigest();
  public  PathDigest(String algorithm);

}