public interface TokenServiceHttpClient
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PATH
The default URL path string to an authorization server token service with
value "token".
|
| Modifier and Type | Method and Description |
|---|---|
<T extends AccessToken> |
post(String path,
AccessTokenGrantRequest payload) |
static final String DEFAULT_PATH
<T extends AccessToken> T post(String path, AccessTokenGrantRequest payload) throws IOException, OAuth2ProtocolException
T - Type of the returned token, extending net.oauth2.Tokenpath - The URL path to an OAuth token service. The default value is
"token" (for reference - DEFAULT_PATH). Different
implementations may support either or both relative and
absolute paths.payload - An OAuth grant request for access or refresh token.IOException - thrown in case of networking or other HTTP errorsOAuth2ProtocolException - thrown in case of OAuth protocol errors.Copyright © 2017. All rights reserved.