net.ripe.rpki.commons.provisioning.cms
Class ProvisioningCmsObject

java.lang.Object
  extended by net.ripe.rpki.commons.provisioning.cms.ProvisioningCmsObject

public class ProvisioningCmsObject
extends Object


Constructor Summary
ProvisioningCmsObject(byte[] encodedContent, X509Certificate cmsCertificate, Collection<X509Certificate> caCertificates, X509CRL crl, AbstractProvisioningPayload payload)
           
 
Method Summary
 boolean equals(Object obj)
           
 Collection<X509Certificate> getCaCertificates()
           ProvisioningCMSObjects may optionally contain a number of CA certificates.
 X509Certificate getCmsCertificate()
           
 X509CRL getCrl()
           
 byte[] getEncoded()
           
 AbstractProvisioningPayload getPayload()
           
 org.joda.time.DateTime getSigningTime()
          This is used to check against replay attacks, see http://tools.ietf.org/html/draft-ietf-sidr-rescerts-provisioning-09#section-3.1.2
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProvisioningCmsObject

public ProvisioningCmsObject(byte[] encodedContent,
                             X509Certificate cmsCertificate,
                             Collection<X509Certificate> caCertificates,
                             X509CRL crl,
                             AbstractProvisioningPayload payload)
Method Detail

getEncoded

public byte[] getEncoded()

getCmsCertificate

public X509Certificate getCmsCertificate()

getPayload

public AbstractProvisioningPayload getPayload()

getCaCertificates

public Collection<X509Certificate> getCaCertificates()

ProvisioningCMSObjects may optionally contain a number of CA certificates. As far as we know, no implementation is using this though. It is provided here for completeness but in all likelihood not needed.

Note: the validator expects to be given the direct (trusted) parent CA certificate to the EE certificate used to sign the CMS.


getCrl

public X509CRL getCrl()

getSigningTime

public org.joda.time.DateTime getSigningTime()
This is used to check against replay attacks, see http://tools.ietf.org/html/draft-ietf-sidr-rescerts-provisioning-09#section-3.1.2


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2013 RIPE NCC, the Netherlands. All Rights Reserved.