/** * Gets a Certificate chain for the specified alias. * * @param alias the alias name * @return a chain of Certificates ( ordered from the user's certificate to the Certificate * Authority's ) or null if the alias does not exist or there is no certificate chain for the * alias ( the alias refers to a trusted certificate entry or there is no entry). */ public final java.security.cert.Certificate[] getCertificateChain(String alias) throws KeyStoreException { return keyStoreSpi.engineGetCertificateChain(alias); }