public class CheckTokenEndpoint extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
CheckTokenEndpoint(ResourceServerTokenServices resourceServerTokenServices) |
Modifier and Type | Method and Description |
---|---|
Map<String,?> |
checkToken(String value) |
org.springframework.http.ResponseEntity<OAuth2Exception> |
handleException(Exception e) |
void |
setAccessTokenConverter(AccessTokenConverter accessTokenConverter) |
void |
setExceptionTranslator(WebResponseExceptionTranslator<OAuth2Exception> exceptionTranslator) |
public CheckTokenEndpoint(ResourceServerTokenServices resourceServerTokenServices)
public void setExceptionTranslator(WebResponseExceptionTranslator<OAuth2Exception> exceptionTranslator)
exceptionTranslator
- the exception translator to setpublic void setAccessTokenConverter(AccessTokenConverter accessTokenConverter)
accessTokenConverter
- the accessTokenConverter to set@RequestMapping(value="/oauth/check_token", method=POST) @ResponseBody public Map<String,?> checkToken(@RequestParam(value="token") String value)
@ExceptionHandler(value=InvalidTokenException.class) public org.springframework.http.ResponseEntity<OAuth2Exception> handleException(Exception e) throws Exception
Exception
Copyright © 2019. All rights reserved.