@DefaultImplementation(value=DefaultClientCredentialsTokenPropagator.class) public interface ClientCredentialsTokenPropagator extends io.micronaut.core.order.Ordered
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
findToken(io.micronaut.http.HttpRequest<?> request)
Attempts to retrieve a token in a request.
|
void |
writeToken(io.micronaut.http.MutableHttpRequest<?> request,
java.lang.String token)
Writes the token to the request.
|
void writeToken(@NonNull io.micronaut.http.MutableHttpRequest<?> request, @NonNull java.lang.String token)
request
- The MutableHttpRequest
instancetoken
- A token ( e.g. JWT token, basic auth token...)java.util.Optional<java.lang.String> findToken(@NonNull io.micronaut.http.HttpRequest<?> request)
request
- The request to look for the token in