List of usage examples for java.net CookieStore remove
public boolean remove(URI uri, HttpCookie cookie);
From source file:org.apache.hadoop.hive.druid.security.DruidKerberosUtil.java
static void removeAuthCookie(CookieStore cookieStore, URI uri) { HttpCookie authCookie = getAuthCookie(cookieStore, uri); if (authCookie != null) { cookieStore.remove(uri, authCookie); }/*from w w w . ja va 2 s . c o m*/ }
From source file:io.druid.security.kerberos.DruidKerberosUtil.java
public static void removeAuthCookie(CookieStore cookieStore, URI uri) { HttpCookie authCookie = getAuthCookie(cookieStore, uri); if (authCookie != null) { cookieStore.remove(uri, authCookie); }//from ww w . j a v a 2 s . c om }
From source file:org.jboss.aerogear.android.authentication.digest.DigestAuthenticationModuleRunner.java
@Override public void onLogout() { HttpProvider provider = httpProviderFactory.get(logoutURL, timeout); clear();// w w w .j ava 2 s . co m CookieStore store = ((CookieManager) CookieManager.getDefault()).getCookieStore(); List<HttpCookie> cookies = store.get(getBaseURI()); for (HttpCookie cookie : cookies) { store.remove(getBaseURI(), cookie); } provider.post(""); }