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 Defaults to
"". |
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 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 if a token needs to be retrieved via a network requestCopyright © 2017 Pivotal Software, Inc.. All rights reserved.