private static X509Store createStore(X509Util.Implementation impl, X509StoreParameters parameters) { X509StoreSpi spi = (X509StoreSpi)impl.getEngine(); spi.engineInit(parameters); return new X509Store(impl.getProvider(), spi); }
private static X509StreamParser createParser(X509Util.Implementation impl) { X509StreamParserSpi spi = (X509StreamParserSpi)impl.getEngine(); return new X509StreamParser(impl.getProvider(), spi); }
/** * Returns an List of error messages for the certificate at the given index in the CertPath. * If index == -1 then the list of global errors is returned with errors not specific to a certificate. * @param index the index of the certificate in the CertPath * @return List of error messages for the certificate * @throws IllegalStateException if the {@link PKIXCertPathReviewer} was not initialized */ public List getErrors(int index) { doChecks(); return errors[index + 1]; }
public static X509Store getInstance(String type, X509StoreParameters parameters, Provider provider) throws NoSuchStoreException { try { X509Util.Implementation impl = X509Util.getImplementation("X509Store", type, provider); return createStore(impl, parameters); } catch (NoSuchAlgorithmException e) { throw new NoSuchStoreException(e.getMessage()); } }
public static X509Store getInstance(String type, X509StoreParameters parameters) throws NoSuchStoreException { try { X509Util.Implementation impl = X509Util.getImplementation("X509Store", type); return createStore(impl, parameters); } catch (NoSuchAlgorithmException e) { throw new NoSuchStoreException(e.getMessage()); } }
/** * Return an iterator of the signature names supported by the generator. * * @return an iterator containing recognised names. */ public Iterator getSignatureAlgNames() { return X509Util.getAlgNames(); } }
/** * generate an X509 certificate, based on the current issuer and subject, * using the passed in provider for the signing. */ public X509Certificate generate( PrivateKey key, String provider) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException { return generate(key, provider, null); }
/** * @deprecated */ public void addAddionalStore(Store store) { addAdditionalStore(store); }
public Collection readAll() throws StreamParsingException { return _spi.engineReadAll(); } }
public boolean match(Object obj) { if (!(obj instanceof X509Certificate)) { return false; } return match((Certificate)obj); } }
private static X509Store createStore(X509Util.Implementation impl, X509StoreParameters parameters) { X509StoreSpi spi = (X509StoreSpi)impl.getEngine(); spi.engineInit(parameters); return new X509Store(impl.getProvider(), spi); }
private static X509StreamParser createParser(X509Util.Implementation impl) { X509StreamParserSpi spi = (X509StreamParserSpi)impl.getEngine(); return new X509StreamParser(impl.getProvider(), spi); }
/** * * @return the valid policy tree, <b>null</b> if no valid policy exists. * @throws IllegalStateException if the {@link PKIXCertPathReviewer} was not initialized */ public PolicyNode getPolicyTree() { doChecks(); return policyTree; }
/** * Return an iterator of the signature names supported by the generator. * * @return an iterator containing recognised names. */ public Iterator getSignatureAlgNames() { return X509Util.getAlgNames(); }
/** * generate an X509 certificate, based on the current issuer and subject, * using the passed in provider for the signing. */ public X509Certificate generate( PrivateKey key, String provider) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException { return generate(key, provider, null); }
/** * @deprecated */ public void addAddionalStore(Store store) { addAdditionalStore(store); }
/** * * @return the PublicKey if the last certificate in the CertPath * @throws IllegalStateException if the {@link PKIXCertPathReviewer} was not initialized */ public PublicKey getSubjectPublicKey() { doChecks(); return subjectPublicKey; }
/** * Return an iterator of the signature names supported by the generator. * * @return an iterator containing recognised names. */ public Iterator getSignatureAlgNames() { return X509Util.getAlgNames(); }
/** * * @return the TrustAnchor for the CertPath, <b>null</b> if no valid TrustAnchor was found. * @throws IllegalStateException if the {@link PKIXCertPathReviewer} was not initialized */ public TrustAnchor getTrustAnchor() { doChecks(); return trustAnchor; }
/** * Return an iterator of the signature names supported by the generator. * * @return an iterator containing recognised names. */ public Iterator getSignatureAlgNames() { return X509Util.getAlgNames(); } }