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 theManifestCmsBuilderorManifestCmsParserto construct this object.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManifestCms.FileContentSpecification
-
Field Summary
Fields Modifier and Type Field Description static org.bouncycastle.asn1.ASN1ObjectIdentifierCONTENT_TYPEstatic StringCONTENT_TYPE_OIDDeprecated.static intDEFAULT_VERSIONstatic StringFILE_HASH_ALGORITHM-
Fields inherited from class net.ripe.rpki.commons.crypto.cms.RpkiSignedObject
ALLOWED_SIGNATURE_ALGORITHM_OIDS, DIGEST_ALGORITHM_OID, RSA_ENCRYPTION_OID, SHA256WITHRSA_ENCRYPTION_OID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsFile(String fileName)URIgetCrlUri()ManifestCms.FileContentSpecificationgetFileContentSpecification(String fileName)StringgetFileHashAlgorithm()Set<String>getFileNames()Map<String,byte[]>getFiles()byte[]getHash(String fileName)Deprecated.Map<String,byte[]>getHashes()org.joda.time.DateTimegetNextUpdateTime()BigIntegergetNumber()org.joda.time.DateTimegetThisUpdateTime()intgetVersion()static byte[]hashContents(byte[] contents)booleanmatchesFiles(Map<String,byte[]> filesToMatch)intsize()protected voidvalidateWithCrl(String location, CertificateRepositoryObjectValidationContext context, ValidationOptions options, ValidationResult result, X509Crl crl)booleanverifyFileContents(String fileName, byte[] contents)-
Methods inherited from class net.ripe.rpki.commons.crypto.cms.RpkiSignedObject
equals, getCertificate, getCertificateIssuer, getCertificateSubject, getContentType, getEncoded, getNotValidAfter, getNotValidBefore, getParentCertificateUri, getSigningTime, getValidityPeriod, hashCode, isPastValidityTime, isRevoked, signedBy, validate, validate
-
-
-
-
Field Detail
-
DEFAULT_VERSION
public static final int DEFAULT_VERSION
- See Also:
- Constant Field Values
-
CONTENT_TYPE_OID
@Deprecated public static final String CONTENT_TYPE_OID
Deprecated.- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier CONTENT_TYPE
-
FILE_HASH_ALGORITHM
public static final String FILE_HASH_ALGORITHM
-
-
Method Detail
-
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)
-
getCrlUri
public URI getCrlUri()
- Specified by:
getCrlUriin interfaceCertificateRepositoryObject- Overrides:
getCrlUriin classRpkiSignedObject
-
validateWithCrl
protected void validateWithCrl(String location, CertificateRepositoryObjectValidationContext context, ValidationOptions options, ValidationResult result, X509Crl crl)
- Overrides:
validateWithCrlin classRpkiSignedObject
-
getHash
@Deprecated public byte[] getHash(String fileName)
Deprecated.
-
verifyFileContents
public boolean verifyFileContents(String fileName, byte[] contents)
-
getFileContentSpecification
public ManifestCms.FileContentSpecification getFileContentSpecification(String fileName)
-
hashContents
public static byte[] hashContents(byte[] contents)
-
-