public void removeValue(String s) { unwrap().removeValue(s); }
/** * Remove and return a value on the session. This method is atomic with respect to other methods on this class. * * @param sslSession the SSL session (must not be {@code null}) * @param key the key to retrieve (must not be {@code null}) * @return the existing value, or {@code null} if no such value was set */ public static Object removeSessionValue(SSLSession sslSession, String key) { Assert.checkNotNullParam("sslSession", sslSession); Assert.checkNotNullParam("key", key); synchronized (sslSession) { final Object existing = sslSession.getValue(key); sslSession.removeValue(key); return existing; } }
/** * Remove the given key-value pair on the session. This method is atomic with respect to other methods on this class. * * @param sslSession the SSL session (must not be {@code null}) * @param key the key to remove (must not be {@code null}) * @param value the value to remove (must not be {@code null}) * @return {@code true} if the key/value pair was removed, {@code false} if the key was not present or the value was not equal to the given value */ public static boolean removeSessionValue(SSLSession sslSession, String key, Object value) { Assert.checkNotNullParam("sslSession", sslSession); Assert.checkNotNullParam("key", key); Assert.checkNotNullParam("value", value); synchronized (sslSession) { final Object existing = sslSession.getValue(key); if (Objects.equals(existing, value)) { sslSession.removeValue(key); return true; } else { return false; } } }
public void removeValue(String s) { unwrap().removeValue(s); }
@Override public void removeValue(String s) { delegate().removeValue(s); }
@Override public void removeValue(String s) { unwrap().removeValue(s); }
@Override public void removeValue(String s) { unwrap().removeValue(s); }
@Override public void removeValue(String s) { unwrap().removeValue(s); }
public void removeValue(String s) { unwrap().removeValue(s); }
/** * Remove and return a value on the session. This method is atomic with respect to other methods on this class. * * @param sslSession the SSL session (must not be {@code null}) * @param key the key to retrieve (must not be {@code null}) * @return the existing value, or {@code null} if no such value was set */ public static Object removeSessionValue(SSLSession sslSession, String key) { Assert.checkNotNullParam("sslSession", sslSession); Assert.checkNotNullParam("key", key); synchronized (sslSession) { final Object existing = sslSession.getValue(key); sslSession.removeValue(key); return existing; } }
/** * Remove and return a value on the session. This method is atomic with respect to other methods on this class. * * @param sslSession the SSL session (must not be {@code null}) * @param key the key to retrieve (must not be {@code null}) * @return the existing value, or {@code null} if no such value was set */ public static Object removeSessionValue(SSLSession sslSession, String key) { Assert.checkNotNullParam("sslSession", sslSession); Assert.checkNotNullParam("key", key); synchronized (sslSession) { final Object existing = sslSession.getValue(key); sslSession.removeValue(key); return existing; } }
/** * Remove and return a value on the session. This method is atomic with respect to other methods on this class. * * @param sslSession the SSL session (must not be {@code null}) * @param key the key to retrieve (must not be {@code null}) * @return the existing value, or {@code null} if no such value was set */ public static Object removeSessionValue(SSLSession sslSession, String key) { Assert.checkNotNullParam("sslSession", sslSession); Assert.checkNotNullParam("key", key); synchronized (sslSession) { final Object existing = sslSession.getValue(key); sslSession.removeValue(key); return existing; } }
/** * Remove the given key-value pair on the session. This method is atomic with respect to other methods on this class. * * @param sslSession the SSL session (must not be {@code null}) * @param key the key to remove (must not be {@code null}) * @param value the value to remove (must not be {@code null}) * @return {@code true} if the key/value pair was removed, {@code false} if the key was not present or the value was not equal to the given value */ public static boolean removeSessionValue(SSLSession sslSession, String key, Object value) { Assert.checkNotNullParam("sslSession", sslSession); Assert.checkNotNullParam("key", key); Assert.checkNotNullParam("value", value); synchronized (sslSession) { final Object existing = sslSession.getValue(key); if (Objects.equals(existing, value)) { sslSession.removeValue(key); return true; } else { return false; } } }
/** * Remove the given key-value pair on the session. This method is atomic with respect to other methods on this class. * * @param sslSession the SSL session (must not be {@code null}) * @param key the key to remove (must not be {@code null}) * @param value the value to remove (must not be {@code null}) * @return {@code true} if the key/value pair was removed, {@code false} if the key was not present or the value was not equal to the given value */ public static boolean removeSessionValue(SSLSession sslSession, String key, Object value) { Assert.checkNotNullParam("sslSession", sslSession); Assert.checkNotNullParam("key", key); Assert.checkNotNullParam("value", value); synchronized (sslSession) { final Object existing = sslSession.getValue(key); if (Objects.equals(existing, value)) { sslSession.removeValue(key); return true; } else { return false; } } }
sslEngine.getSession().removeValue(String.valueOf(key.hashCode()));
/** * Remove the given key-value pair on the session. This method is atomic with respect to other methods on this class. * * @param sslSession the SSL session (must not be {@code null}) * @param key the key to remove (must not be {@code null}) * @param value the value to remove (must not be {@code null}) * @return {@code true} if the key/value pair was removed, {@code false} if the key was not present or the value was not equal to the given value */ public static boolean removeSessionValue(SSLSession sslSession, String key, Object value) { Assert.checkNotNullParam("sslSession", sslSession); Assert.checkNotNullParam("key", key); Assert.checkNotNullParam("value", value); synchronized (sslSession) { final Object existing = sslSession.getValue(key); if (Objects.equals(existing, value)) { sslSession.removeValue(key); return true; } else { return false; } } }