public class CheckCacheEntryFixity extends Object implements com.google.common.base.Function<LowLevelCacheEntry,FixityResult>, Serializable
| Constructor and Description |
|---|
CheckCacheEntryFixity(URI dsChecksum,
long dsSize)
A constructor providing the checksum info to close over.
|
| Modifier and Type | Method and Description |
|---|---|
FixityResult |
apply(LowLevelCacheEntry input) |
URI |
getChecksum()
Returns the expected checksum of the bytes to be verified.
|
MessageDigest |
getDigest()
Returns the digest to be used in checksum verification.
|
long |
getSize()
Returns the expected number of bytes to be verified.
|
public CheckCacheEntryFixity(URI dsChecksum, long dsSize)
public FixityResult apply(LowLevelCacheEntry input)
apply in interface com.google.common.base.Function<LowLevelCacheEntry,FixityResult>public MessageDigest getDigest()
public URI getChecksum()
public long getSize()
Copyright © 2013 DuraSpace, Inc.. All Rights Reserved.