Trivial change to use a base type
*/
package org.apache.cxf.rs.security.oauth2.client;
+import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import javax.ws.rs.core.MultivaluedMap;
@@ -31,9 +32,11 @@ import org.apache.cxf.rt.security.crypto.CryptoUtils;
import org.apache.cxf.rt.security.crypto.MessageDigestUtils;
public class MemoryClientCodeStateManager implements ClientCodeStateManager {
- private ConcurrentHashMap<String, MultivaluedMap<String, String>> map =
+ private Map<String, MultivaluedMap<String, String>> map =
new ConcurrentHashMap<String, MultivaluedMap<String, String>>();
+
private boolean generateNonce;
+
@Override
public MultivaluedMap<String, String> toRedirectState(MessageContext mc,
MultivaluedMap<String, String> requestState) {
@@ -61,6 +64,7 @@ public class MemoryClientCodeStateManager implements ClientCodeStateManager {
}
return map.remove(stateParam);
}
+
public void setGenerateNonce(boolean generateNonce) {
this.generateNonce = generateNonce;
}
