net.ripe.rpki.commons.crypto.cms.manifest
Class ManifestCms
java.lang.Object
net.ripe.rpki.commons.crypto.cms.RpkiSignedObject
net.ripe.rpki.commons.crypto.cms.manifest.ManifestCms
- All Implemented Interfaces:
- Serializable, CertificateRepositoryObject
public class ManifestCms
- extends RpkiSignedObject
A manifest of files published by a CA certificate.
Use the ManifestCmsBuilder or ManifestCmsParser to construct this object.
- See Also:
- Serialized Form
| Methods inherited from class net.ripe.rpki.commons.crypto.cms.RpkiSignedObject |
equals, getCertificate, getCertificateIssuer, getCertificateSubject, getContentType, getEncoded, getNotValidAfter, getNotValidBefore, getSigningTime, getValidityPeriod, hashCode, isPastValidityTime, isRevoked, signedBy, validate |
DEFAULT_VERSION
public static final int DEFAULT_VERSION
- See Also:
- Constant Field Values
CONTENT_TYPE_OID
public static final String CONTENT_TYPE_OID
- See Also:
- Constant Field Values
FILE_HASH_ALGORITHM
public static final String FILE_HASH_ALGORITHM
getVersion
public int getVersion()
getNumber
public BigInteger getNumber()
getFileHashAlgorithm
public String getFileHashAlgorithm()
getThisUpdateTime
public org.joda.time.DateTime getThisUpdateTime()
getNextUpdateTime
public org.joda.time.DateTime getNextUpdateTime()
size
public int size()
containsFile
public boolean containsFile(String fileName)
getHashes
public Map<String,byte[]> getHashes()
getFiles
public Map<String,byte[]> getFiles()
matchesFiles
public boolean matchesFiles(Map<String,byte[]> filesToMatch)
getFileNames
public Set<String> getFileNames()
getCrlUri
public URI getCrlUri()
- Specified by:
getCrlUri in interface CertificateRepositoryObject- Overrides:
getCrlUri in class RpkiSignedObject
getParentCertificateUri
public URI getParentCertificateUri()
validateWithCrl
protected void validateWithCrl(String location,
CertificateRepositoryObjectValidationContext context,
ValidationOptions options,
ValidationResult result,
X509Crl crl)
- Specified by:
validateWithCrl in class RpkiSignedObject
getHash
@Deprecated
public byte[] getHash(String fileName)
- Deprecated. use
verifyFileContents(String, byte[]) or getFileContentSpecification(String).
verifyFileContents
public boolean verifyFileContents(String fileName,
byte[] contents)
getFileContentSpecification
public ManifestCms.FileContentSpecification getFileContentSpecification(String fileName)
hashContents
public static byte[] hashContents(byte[] contents)
Copyright © 2008-2015 RIPE NCC, the Netherlands. All Rights Reserved.