package com.daedafusion.security.authentication;

import org.apache.log4j.Logger;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by mphilpot on 7/16/14.
 */
public final class SharedAuthenticationState
{
    private static final Logger log = Logger.getLogger(SharedAuthenticationState.class);

    private final Map<String, Object> state;

    public SharedAuthenticationState()
    {
        state = new ConcurrentHashMap<>();
    }

    public void reset()
    {
        state.clear();
    }

    public void addState(String key, Object value)
    {
        state.put(key, value);
    }

    public Object getState(String key)
    {
        return state.get(key);
    }

    public boolean hasState(String key)
    {
        return state.containsKey(key);
    }
}

@@ -614,32 +614,67 @@
  value);%0A    %7D%0A%0A
+    @SuppressWarnings(%22unchecked%22)%0A
     public Objec
@@ -668,22 +668,21 @@
  public 
-Object
+%3CT%3E T
  getStat
@@ -711,24 +711,28 @@
       return
+ (T)
  state.get(k

make getState generic return type