1 package org.springframework.security.oauth2.provider.implicit; 2 3 import org.springframework.security.oauth2.provider.OAuth2Request; 4 import org.springframework.security.oauth2.provider.TokenRequest; 5 6 /** 7 * Service to associate & store an incoming AuthorizationRequest with the TokenRequest that is passed 8 * to the ImplicitTokenGranter during the Implicit flow. This mimics the AuthorizationCodeServices 9 * functionality from the Authorization Code flow, allowing the ImplicitTokenGranter to reference the original 10 * AuthorizationRequest, while still allowing the ImplicitTokenGranter to adhere to the TokenGranter interface. 11 * 12 * @author Amanda Anganes 13 * 14 * @deprecated with no replacement (it shouldn't be necessary to use this strategy since 2.0.2) 15 * 16 */ 17 @Deprecated 18 public interface ImplicitGrantService { 19 20 /** 21 * Save an association between an OAuth2Request and a TokenRequest. 22 * 23 * @param originalRequest 24 * @param tokenRequest 25 */ 26 public void store(OAuth2Request originalRequest, TokenRequest tokenRequest); 27 28 /** 29 * Look up and return the OAuth2Request associated with the given TokenRequest. 30 * 31 * @param tokenRequest 32 * @return 33 */ 34 public OAuth2Request remove(TokenRequest tokenRequest); 35 36 }