| Package | Description |
|---|---|
| net.oauth2 | |
| net.oauth2.client | |
| net.oauth2.client.http |
| Modifier and Type | Class and Description |
|---|---|
class |
TemporalAccessToken<T extends AccessToken>
Convenience wrapper for temporal operations with access tokens.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends AccessToken> |
TemporalAccessToken.create(T token)
Static object factory defaulting the initial moment of token validitiy to the current moment.
|
static <T extends AccessToken> |
TemporalAccessToken.isExpired(T token,
java.time.Instant since,
java.time.temporal.TemporalUnit expireInUnits)
Static check for tokens whether they are still valid if they have been
active since the provided moment.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Resumable<T extends AccessToken>
Functional interface for resumable,
TokenProviderJobs
providers. |
interface |
TokenChangeObservable<T extends AccessToken>
Functional capability to install listeners for token updates and support
asynchronous push notification on changes.
|
interface |
TokenChangeObserver<T extends AccessToken>
Functional interface for listeners to asynchronous (push) provisioning of
Access Token update events.
|
interface |
TokenProviderJob<T extends AccessToken>
A Token Provider that continuously provides Access Token.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends AccessToken> |
TokenService.fetch()
Sends a request for an Access Token to the backend Token Service.
|
<T extends AccessToken> |
TokenProvider.get()
Return token synchronously
|
<T extends AccessToken> |
TokenService.refresh(String refreshTokenString)
Sends a refresh token request to the Token Service using the supplied refreshTokenSeting.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends AccessToken> |
DataBindingProvider.parseToken(String payload,
Class<T> tokenType) |
<T extends AccessToken> |
TokenServiceHttpClient.post(String path,
AccessTokenGrantRequest payload) |
| Modifier and Type | Method and Description |
|---|---|
static String |
ResourceOAuthHeader.format(AccessToken token)
Formats a OAuth access token into standard OAuth value for the Authorization HTTP request header
|
Copyright © 2017. All rights reserved.