public class ManifestCms extends RpkiSignedObject
ManifestCmsBuilder or ManifestCmsParser to construct this object.| Modifier and Type | Class and Description |
|---|---|
static class |
ManifestCms.FileContentSpecification |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE_OID |
static int |
DEFAULT_VERSION |
static String |
FILE_HASH_ALGORITHM |
ALLOWED_SIGNATURE_ALGORITHM_OIDS, DIGEST_ALGORITHM_OID, RSA_ENCRYPTION_OID, SHA256WITHRSA_ENCRYPTION_OID| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFile(String fileName) |
URI |
getCrlUri() |
ManifestCms.FileContentSpecification |
getFileContentSpecification(String fileName) |
String |
getFileHashAlgorithm() |
Set<String> |
getFileNames() |
Map<String,byte[]> |
getFiles() |
byte[] |
getHash(String fileName)
Deprecated.
|
Map<String,byte[]> |
getHashes() |
org.joda.time.DateTime |
getNextUpdateTime() |
BigInteger |
getNumber() |
URI |
getParentCertificateUri() |
org.joda.time.DateTime |
getThisUpdateTime() |
int |
getVersion() |
static byte[] |
hashContents(byte[] contents) |
boolean |
matchesFiles(Map<String,byte[]> filesToMatch) |
int |
size() |
protected void |
validateWithCrl(String location,
CertificateRepositoryObjectValidationContext context,
ValidationOptions options,
ValidationResult result,
X509Crl crl) |
boolean |
verifyFileContents(String fileName,
byte[] contents) |
equals, getCertificate, getCertificateIssuer, getCertificateSubject, getContentType, getEncoded, getNotValidAfter, getNotValidBefore, getSigningTime, getValidityPeriod, hashCode, isPastValidityTime, isRevoked, signedBy, validate, validatepublic static final int DEFAULT_VERSION
public static final String CONTENT_TYPE_OID
public static final String FILE_HASH_ALGORITHM
public int getVersion()
public BigInteger getNumber()
public String getFileHashAlgorithm()
public org.joda.time.DateTime getThisUpdateTime()
public org.joda.time.DateTime getNextUpdateTime()
public int size()
public boolean containsFile(String fileName)
public URI getCrlUri()
getCrlUri in interface CertificateRepositoryObjectgetCrlUri in class RpkiSignedObjectpublic URI getParentCertificateUri()
protected void validateWithCrl(String location, CertificateRepositoryObjectValidationContext context, ValidationOptions options, ValidationResult result, X509Crl crl)
validateWithCrl in class RpkiSignedObject@Deprecated public byte[] getHash(String fileName)
verifyFileContents(String, byte[]) or getFileContentSpecification(String).public boolean verifyFileContents(String fileName, byte[] contents)
public ManifestCms.FileContentSpecification getFileContentSpecification(String fileName)
public static byte[] hashContents(byte[] contents)
Copyright © 2008–2018 RIPE Network Coordination Centre (RIPE NCC). All rights reserved.