net.ripe.rpki.commons.crypto.cms.manifest
Class ManifestCms.FileContentSpecification
java.lang.Object
net.ripe.rpki.commons.crypto.cms.manifest.ManifestCms.FileContentSpecification
- All Implemented Interfaces:
- Specification<byte[]>
- Enclosing class:
- ManifestCms
public static class ManifestCms.FileContentSpecification
- extends Object
- implements Specification<byte[]>
ManifestCms.FileContentSpecification
public ManifestCms.FileContentSpecification(byte[] hash)
getHash
public byte[] getHash()
isSatisfiedBy
public boolean isSatisfiedBy(byte[] contents)
- Specified by:
isSatisfiedBy in interface Specification<byte[]>
- Parameters:
contents - the candidate to test.
- Returns:
- true if the candidate satisfies this specification.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2012 RIPE NCC, the Netherlands. All Rights Reserved.