protected static void processCRLJ( Date validDate, X509CRL completecrl, Object cert, CertStatus certStatus) throws AnnotatedException { if (certStatus.getCertStatus() == CertStatus.UNREVOKED) { CertPathValidatorUtilities.getCertStatus(validDate, completecrl, cert, certStatus); } }
/** * Intersects this mask with the given reasons mask. * * @param mask The mask to intersect with. * @return The intersection of this and teh given mask. */ ReasonsMask intersect(ReasonsMask mask) { ReasonsMask _mask = new ReasonsMask(); _mask.addReasons(new ReasonsMask(_reasons & mask.getReasons())); return _mask; }
public Std() { super(new BouncyCastleProvider()); } }
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; }
private Certificate readPEMCertificate( InputStream in) throws IOException, CertificateParsingException { ASN1Sequence seq = PEM_PARSER.readPEMObject(in); if (seq != null) { return new X509CertificateObject( X509CertificateStructure.getInstance(seq)); } return null; }
/** * Adds all reasons from the reasons mask to this mask. * * @param mask The reasons mask to add. */ void addReasons(ReasonsMask mask) { _reasons = _reasons | mask.getReasons(); }
JCEECPrivateKey( PrivateKeyInfo info) throws IOException { populateFromPrivKeyInfo(info); }
public void checkPermittedDN(ASN1Sequence dns) throws PKIXNameConstraintValidatorException { checkPermittedDN(permittedSubtreesDN, dns); }
public void checkExcludedDN(ASN1Sequence dns) throws PKIXNameConstraintValidatorException { checkExcludedDN(excludedSubtreesDN, dns); }
protected byte[] engineGetEncoded( String format) { if (isASN1FormatString(format)) { return engineGetEncoded(); } return null; }
protected JCEBlockCipher( BlockCipher engine) { baseEngine = engine; cipher = new BufferedGenericBlockCipher(engine); }
protected int engineGetOutputSize( int inputLen) { return cipher.getOutputSize(inputLen); }
public void engineStore(OutputStream stream, char[] password) throws IOException { doStore(stream, password, false); }
public BCPKCS12KeyStore() { super(new BouncyCastleProvider(), pbeWithSHAAnd3_KeyTripleDES_CBC, pbeWithSHAAnd40BitRC2_CBC); } }
protected static void processCRLJ( Date validDate, X509CRL completecrl, Object cert, CertStatus certStatus) throws AnnotatedException { if (certStatus.getCertStatus() == CertStatus.UNREVOKED) { CertPathValidatorUtilities.getCertStatus(validDate, completecrl, cert, certStatus); } }
/** * Returns <code>true</code> if the passed reasons mask has new reasons. * * @param mask The reasons mask which should be tested for new reasons. * @return <code>true</code> if the passed reasons mask has new reasons. */ boolean hasNewReasons(ReasonsMask mask) { return ((_reasons | mask.getReasons() ^ _reasons) != 0); }
protected JCEBlockCipher( BlockCipher engine, int ivLength) { baseEngine = engine; this.cipher = new BufferedGenericBlockCipher(engine); this.ivLength = ivLength / 8; }
/** * Returns <code>true</code> if the passed reasons mask has new reasons. * * @param mask The reasons mask which should be tested for new reasons. * @return <code>true</code> if the passed reasons mask has new reasons. */ boolean hasNewReasons(ReasonsMask mask) { return ((_reasons | mask.getReasons() ^ _reasons) != 0); }
/** * Adds all reasons from the reasons mask to this mask. * * @param mask The reasons mask to add. */ void addReasons(ReasonsMask mask) { _reasons = _reasons | mask.getReasons(); }