public static CertificateList getInstance( ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }
public static CertificateList getInstance( ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }
private CRL readPEMCRL( InputStream in) throws IOException, CRLException { ASN1Sequence seq = PEM_PARSER.readPEMObject(in); if (seq != null) { return new X509CRLObject(CertificateList.getInstance(seq)); } return null; }
public CertificateList[] getCertificateLists() { CertificateList[] result = new CertificateList[content.size()]; for (int i = 0; i != result.length; i++) { result[i] = CertificateList.getInstance(content.getObjectAt(i)); } return result; }
public CertificateList[] getCrls() { if (crls == null) { return null; } CertificateList[] results = new CertificateList[crls.size()]; for (int i = 0; i != results.length; i++) { results[i] = CertificateList.getInstance(crls.getObjectAt(i)); } return results; }
public CertificateList[] getCertificateLists() { CertificateList[] result = new CertificateList[content.size()]; for (int i = 0; i != result.length; i++) { result[i] = CertificateList.getInstance(content.getObjectAt(i)); } return result; }
public CertificateList[] getCrls() { if (crls == null) { return null; } CertificateList[] results = new CertificateList[crls.size()]; for (int i = 0; i != results.length; i++) { results[i] = CertificateList.getInstance(crls.getObjectAt(i)); } return results; }
public CertificateList[] getCrlVals() { if (null == this.crlVals) { return new CertificateList[0]; } CertificateList[] result = new CertificateList[this.crlVals.size()]; for (int idx = 0; idx < result.length; idx++) { result[idx] = CertificateList.getInstance(this.crlVals .getObjectAt(idx)); } return result; }
public CertificateList[] getCrlVals() { if (null == this.crlVals) { return new CertificateList[0]; } CertificateList[] result = new CertificateList[this.crlVals.size()]; for (int idx = 0; idx < result.length; idx++) { result[idx] = CertificateList.getInstance(this.crlVals .getObjectAt(idx)); } return result; }
private CRL getCRL() throws CRLException { if (sData == null || sDataObjectCount >= sData.size()) { return null; } return new X509CRLObject( CertificateList.getInstance( sData.getObjectAt(sDataObjectCount++))); }
private CRL getCRL() throws CRLException { if (sCrlData == null || sCrlDataObjectCount >= sCrlData.size()) { return null; } return createCRL( CertificateList.getInstance( sCrlData.getObjectAt(sCrlDataObjectCount++))); }
private TimeStampAndCRL(ASN1Sequence seq) { this.timeStamp = ContentInfo.getInstance(seq.getObjectAt(0)); if (seq.size() == 2) { this.crl = CertificateList.getInstance(seq.getObjectAt(1)); } }
private TimeStampAndCRL(ASN1Sequence seq) { this.timeStamp = ContentInfo.getInstance(seq.getObjectAt(0)); if (seq.size() == 2) { this.crl = CertificateList.getInstance(seq.getObjectAt(1)); } }
public CertificateList getBcCrl(BigInteger crlNumber) throws OperationException { LOG.info(" START getCrl: ca={}, crlNumber={}", caIdent.getName(), crlNumber); boolean successful = false; try { byte[] encodedCrl = certstore.getEncodedCrl(caIdent, crlNumber); if (encodedCrl == null) { return null; } try { CertificateList crl = CertificateList.getInstance(encodedCrl); successful = true; if (LOG.isInfoEnabled()) { LOG.info("SUCCESSFUL getCrl: ca={}, thisUpdate={}", caIdent.getName(), crl.getThisUpdate().getTime()); } return crl; } catch (RuntimeException ex) { throw new OperationException(SYSTEM_FAILURE, ex); } } finally { if (!successful) { LOG.info(" FAILED getCrl: ca={}", caIdent.getName()); } } } // method getCrl
while (crlValsEnum.hasMoreElements()) CertificateList.getInstance(crlValsEnum.nextElement());
public static X509CRL getCrlFromPkiMessage(SignedData signedData) throws CRLException { requireNonNull("signedData", signedData); ASN1Set set = signedData.getCRLs(); if (set == null || set.size() == 0) { return null; } try { CertificateList cl = CertificateList.getInstance(set.getObjectAt(0)); return ScepUtil.toX509Crl(cl); } catch (IllegalArgumentException | CertificateException | CRLException ex) { throw new CRLException(ex); } }
private CRL getCRL(ASN1Sequence seq) throws CRLException { if (seq == null) { return null; } if (seq.size() > 1 && seq.getObjectAt(0) instanceof ASN1ObjectIdentifier) { if (seq.getObjectAt(0).equals(PKCSObjectIdentifiers.signedData)) { sCrlData = SignedData.getInstance(ASN1Sequence.getInstance( (ASN1TaggedObject)seq.getObjectAt(1), true)).getCRLs(); return getCRL(); } } return createCRL( CertificateList.getInstance(seq)); }
private CRL readDERCRL( InputStream in) throws IOException, CRLException { ASN1InputStream dIn = new ASN1InputStream(in); ASN1Sequence seq = (ASN1Sequence)dIn.readObject(); if (seq.size() > 1 && seq.getObjectAt(0) instanceof ASN1ObjectIdentifier) { if (seq.getObjectAt(0).equals(PKCSObjectIdentifiers.signedData)) { sData = new SignedData(ASN1Sequence.getInstance( (ASN1TaggedObject)seq.getObjectAt(1), true)).getCRLs(); return getCRL(); } } return new X509CRLObject(CertificateList.getInstance(seq)); }
break; case TAG_CRL: value = CertificateList.getInstance(choice, false); break; case TAG_OCSPCERTSTATUS:
@Override protected Object execute0() throws Exception { CertificateList crl = CertificateList.getInstance( X509Util.toDerEncoded(IoUtil.read(inFile))); if (crlNumber != null && crlNumber) { ASN1Encodable asn1 = crl.getTBSCertList().getExtensions().getExtensionParsedValue( Extension.cRLNumber); if (asn1 == null) { return "null"; } return getNumber(ASN1Integer.getInstance(asn1).getPositiveValue()); } else if (issuer != null && issuer) { return crl.getIssuer().toString(); } else if (thisUpdate != null && thisUpdate) { return toUtcTimeyyyyMMddhhmmssZ(crl.getThisUpdate().getDate()); } else if (nextUpdate != null && nextUpdate) { return crl.getNextUpdate() == null ? "null" : toUtcTimeyyyyMMddhhmmssZ(crl.getNextUpdate().getDate()); } return null; }