Class AccessTokenService


  • @Path("/token")
    public class AccessTokenService
    extends AbstractTokenService
    OAuth2 Access Token Service implementation
    • Constructor Detail

      • AccessTokenService

        public AccessTokenService()
    • Method Detail

      • setGrantHandlers

        public void setGrantHandlers​(List<AccessTokenGrantHandler> handlers)
        Sets the list of optional grant handlers
        Parameters:
        handlers - the grant handlers
      • setGrantHandler

        public void setGrantHandler​(AccessTokenGrantHandler handler)
        Sets a grant handler
        Parameters:
        handler - the grant handler
      • handleTokenRequest

        @POST
        @Consumes("application/x-www-form-urlencoded")
        @Produces("application/json")
        public javax.ws.rs.core.Response handleTokenRequest​(javax.ws.rs.core.MultivaluedMap<String,​String> params)
        Processes an access token request
        Parameters:
        params - the form parameters representing the access token grant
        Returns:
        Access Token or the error
      • checkAudience

        protected void checkAudience​(Client c,
                                     javax.ws.rs.core.MultivaluedMap<String,​String> params)