public interface OAuthTokenModule extends BaseModule
Modifier and Type | Method and Description |
---|---|
IdentityProvider |
getIdentityProvider()
Method returns the IdentityProvider implementation for generating and validating OAuth token.
|
Response |
queryAccessToken(HttpServletRequest servletRequest)
Requests access token for a client
|
String |
validateToken(HttpServletRequest httpServletRequest)
Validate token and Retrieves Client ID on successful validation
|
getBaseOps, getURIContext, getUserContext, setBaseOps, setURIContext, setUserContext
Response queryAccessToken(HttpServletRequest servletRequest) throws ApplicationException, com.fasterxml.jackson.core.JsonProcessingException
servletRequest
- com.fasterxml.jackson.core.JsonProcessingException
- when ObjectMapper cannot read JSON
response to Java objectApplicationException
String validateToken(HttpServletRequest httpServletRequest) throws InvalidTokenException, com.fasterxml.jackson.core.JsonProcessingException
httpServletRequest
- InvalidTokenException
- when the access token sent is not validcom.fasterxml.jackson.core.JsonProcessingException
IdentityProvider getIdentityProvider()