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, signedBy |
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)
getFiles
public Map<String,byte[]> getFiles()
getFileNames
public Set<String> getFileNames()
getCrlUri
public URI getCrlUri()
- Specified by:
getCrlUri in interface CertificateRepositoryObject- Overrides:
getCrlUri in class RpkiSignedObject
getParentCertificateUri
public URI getParentCertificateUri()
validate
public void validate(String location,
CertificateRepositoryObjectValidationContext context,
CrlLocator crlLocator,
ValidationOptions options,
ValidationResult result)
- Specified by:
validate in interface CertificateRepositoryObject- Overrides:
validate 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-2013 RIPE NCC, the Netherlands. All Rights Reserved.