Code example for KeyStore

Methods: getCertificateAlias

0
			db.update(dh.getTable(), cv, BaseColumns._ID + " = ?", new String[] {Long.toString(1)});
	} 
	 
	private boolean isCertKnown(X509Certificate cert) {
		try { 
			return keyStore.getCertificateAlias(cert) != null;
		} catch(KeyStoreException e) {
			return false; 
		} 
	} 
	 
	private boolean isExpiredException(Throwable e) {
		do { 
			if(e instanceof CertificateExpiredException)
				return true; 
			e = e.getCause();
		} while(e != null);
		return false; 
	}