public abstract class RpkiSignedObject extends Object implements CertificateRepositoryObject
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
ALLOWED_SIGNATURE_ALGORITHM_OIDS |
static String |
DIGEST_ALGORITHM_OID
The digestAlgorithms set MUST include only SHA-256, the OID for which is
2.16.840.1.101.3.4.2.1.
|
static String |
RSA_ENCRYPTION_OID
However, older versions of BouncyCastle did not support this OID and use "rsaEncryption" instead.
|
static String |
SHA256WITHRSA_ENCRYPTION_OID
CMS signed objects must indicate signing algorithm as "sha256WithRsa".
|
| Modifier | Constructor and Description |
|---|---|
protected |
RpkiSignedObject(byte[] encoded,
X509ResourceCertificate certificate,
org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
org.joda.time.DateTime signingTime) |
protected |
RpkiSignedObject(RpkiSignedObjectInfo cmsObjectData) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetParentCertificateUripublic static final String SHA256WITHRSA_ENCRYPTION_OID
public static final String RSA_ENCRYPTION_OID
public static final String DIGEST_ALGORITHM_OID
protected RpkiSignedObject(RpkiSignedObjectInfo cmsObjectData)
protected RpkiSignedObject(byte[] encoded,
X509ResourceCertificate certificate,
org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
org.joda.time.DateTime signingTime)
public byte[] getEncoded()
getEncoded in interface CertificateRepositoryObjectpublic org.joda.time.DateTime getSigningTime()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
public X509ResourceCertificate getCertificate()
public boolean signedBy(X509ResourceCertificate certificate)
public ValidityPeriod getValidityPeriod()
public org.joda.time.DateTime getNotValidBefore()
public org.joda.time.DateTime getNotValidAfter()
public X500Principal getCertificateIssuer()
public X500Principal getCertificateSubject()
public URI getCrlUri()
getCrlUri in interface CertificateRepositoryObjectpublic void validate(String location, CertificateRepositoryObjectValidationContext context, CrlLocator crlLocator, ValidationOptions options, ValidationResult result)
validate in interface CertificateRepositoryObjectpublic void validate(String location, CertificateRepositoryObjectValidationContext context, X509Crl crl, URI crlUri, ValidationOptions options, ValidationResult result)
validate in interface CertificateRepositoryObjectprotected abstract void validateWithCrl(String location, CertificateRepositoryObjectValidationContext context, ValidationOptions options, ValidationResult result, X509Crl crl)
public boolean isPastValidityTime()
isPastValidityTime in interface CertificateRepositoryObjectpublic boolean isRevoked()
isRevoked in interface CertificateRepositoryObjectCopyright © 2008–2022 RIPE Network Coordination Centre (RIPE NCC). All rights reserved.