public abstract class AbstractUaaTokenProvider extends Object implements TokenProvider
| Constructor and Description |
|---|
AbstractUaaTokenProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientId()
The client id.
|
String |
getClientSecret()
The client secret.
|
reactor.core.publisher.Flux<String> |
getRefreshTokens(ConnectionContext connectionContext)
Returns a
Flux of refresh tokens for a connection |
reactor.core.publisher.Mono<String> |
getToken(ConnectionContext connectionContext)
Provides an OAuth token to be used by requests
|
void |
invalidate(ConnectionContext connectionContext)
Called when a
401 UNAUTHORIZED is received as part of a request. |
@Value.Default public String getClientId()
cf.@Value.Default public String getClientSecret()
"".public reactor.core.publisher.Flux<String> getRefreshTokens(ConnectionContext connectionContext)
Flux of refresh tokens for a connectionconnectionContext - A ConnectionContext to be used to identity which connection the refresh tokens be retrieved forFlux that emits the last token on subscribe and new refresh tokens as they are negotiatedpublic final reactor.core.publisher.Mono<String> getToken(ConnectionContext connectionContext)
TokenProvidergetToken in interface TokenProviderconnectionContext - A ConnectionContext to be used if a token needs to be retrieved via a network requestpublic void invalidate(ConnectionContext connectionContext)
TokenProvider401 UNAUTHORIZED is received as part of a request. Since not all TokenProviders care about this possibility, the default implementation does nothing.
Implementations are free to manage internal state with this call if they choose to.invalidate in interface TokenProviderconnectionContext - A ConnectionContext to be used to identity which connection the tokens should be invalidated forCopyright © 2019. All rights reserved.