/** * Executes the call to the REST Service requesting the token revocation and processes the response. * * @param clientId The client identifier. * @param clientSecret The client secret. * @param token The token that the client wants to get revoked. * @param tokenTypeHint A hint about the type of the token submitted for revocation. * @return The token revocation response. */ public TokenRevocationResponse execTokenRevocation(String clientId, String clientSecret, String token, TokenTypeHint tokenTypeHint) { setRequest(new TokenRevocationRequest()); getRequest().setToken(token); getRequest().setTokenTypeHint(tokenTypeHint); getRequest().setAuthUsername(clientId); getRequest().setAuthPassword(clientSecret); return exec(); }
clientRequest.setHttpMethod(getHttpMethod()); if (StringUtils.isNotBlank(getRequest().getToken())) { clientRequest.formParameter(TokenRevocationRequestParam.TOKEN, getRequest().getToken()); if (getRequest().getTokenTypeHint() != null) { clientRequest.formParameter(TokenRevocationRequestParam.TOKEN_TYPE_HINT, getRequest().getTokenTypeHint());