private OOBCertHash(ASN1Sequence seq) { int index = seq.size() - 1; hashVal = DERBitString.getInstance(seq.getObjectAt(index--)); for (int i = index; i >= 0; i--) { ASN1TaggedObject tObj = (ASN1TaggedObject)seq.getObjectAt(i); if (tObj.getTagNo() == 0) { hashAlg = AlgorithmIdentifier.getInstance(tObj, true); } else { certId = CertId.getInstance(tObj, true); } } }
public CertId[] getRevCerts() { if (revCerts == null) { return null; } CertId[] results = new CertId[revCerts.size()]; for (int i = 0; i != results.length; i++) { results[i] = CertId.getInstance(revCerts.getObjectAt(i)); } return results; }
public RevRepContentBuilder add(PKIStatusInfo status, CertId certId) { if (this.status.size() != this.revCerts.size()) { throw new IllegalStateException("status and revCerts sequence must be in common order"); } this.status.add(status); this.revCerts.add(certId); return this; }
private RevAnnContent(ASN1Sequence seq) { status = PKIStatus.getInstance(seq.getObjectAt(0)); certId = CertId.getInstance(seq.getObjectAt(1)); willBeRevokedAt = ASN1GeneralizedTime.getInstance(seq.getObjectAt(2)); badSinceDate = ASN1GeneralizedTime.getInstance(seq.getObjectAt(3)); if (seq.size() > 4) { crlDetails = Extensions.getInstance(seq.getObjectAt(4)); } }
public OOBCertHash(AlgorithmIdentifier hashAlg, CertId certId, byte[] hashVal) { this(hashAlg, certId, new DERBitString(hashVal)); }
public OOBCertHash(AlgorithmIdentifier hashAlg, CertId certId, DERBitString hashVal) { this.hashAlg = hashAlg; this.certId = certId; this.hashVal = hashVal; }
public CertId getCertId() { return certId; }