Interface ClientCredentialsExchanger
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
TokenClient
public interface ClientCredentialsExchanger extends java.lang.AutoCloseableAn interface for exchanging client credentials for an access token.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TokenResultexchangeClientCredentials(ClientCredentialsExchangeRequest req)Requests an exchange of client credentials for an access token.
-
-
-
Method Detail
-
exchangeClientCredentials
TokenResult exchangeClientCredentials(ClientCredentialsExchangeRequest req) throws TokenExchangeException, java.io.IOException
Requests an exchange of client credentials for an access token.- Parameters:
req- the request details.- Returns:
- an access token.
- Throws:
TokenExchangeException- if the OAuth server returned a detailed error.java.io.IOException- if a general IO error occurred.
-
-