001/** 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 * 006 */ 007package org.fcrepo.migration; 008 009/** 010 * A default implementation of ContentDigest that accepts 011 * values at construction time. 012 * @author mdurbin 013 */ 014public class DefaultContentDigest implements ContentDigest { 015 016 private String type; 017 018 private String digest; 019 020 /** 021 * default content digest. 022 * @param type the type 023 * @param digest the digest 024 */ 025 public DefaultContentDigest(final String type, final String digest) { 026 this.type = type; 027 this.digest = digest; 028 } 029 030 @Override 031 public String getType() { 032 return type; 033 } 034 035 @Override 036 public String getDigest() { 037 return digest; 038 } 039}