package org.springframework.security.oauth.consumer.rememberme;

import org.springframework.security.oauth.consumer.OAuthConsumerToken;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * Basic, no-op implementation of the remember-me services.
 * 
 * @author Ryan Heaton
 */
public class NoOpOAuthRememberMeServices implements OAuthRememberMeServices {

  public Map<String, OAuthConsumerToken> loadRememberedTokens(HttpServletRequest request, HttpServletResponse response) {
    return null;
  }

  public void rememberTokens(Map<String, OAuthConsumerToken> tokens, HttpServletRequest request, HttpServletResponse response) {
  }

}

@@ -309,16 +309,249 @@
 ervices.
+ Not very useful in a 3-legged OAuth flow, but for a 2-legged%0A * system where there are no request tokens to store in between requests it keeps the consumer stateless at the price of%0A * obtaining a new access token for every request.
 %0A * %0A * 
@@ -653,18 +653,17 @@
 ices %7B%0A%0A
-  
+%09
 public M
@@ -778,12 +778,10 @@
 ) %7B%0A
-    
+%09%09
 retu
@@ -793,15 +793,13 @@
 ll;%0A
-  %7D%0A%0A  
+%09%7D%0A%0A%09
 publ
@@ -880,33 +880,36 @@
 Request request,
- 
+%0A%09%09%09
 HttpServletRespo
@@ -928,10 +928,9 @@
 ) %7B%0A
-  
+%09
 %7D%0A%0A%7D

add javadocs to NoOpOAuthRememberMeServices