public final class SecurityHeaders
extends java.lang.Object
HttpHeaders
Modifier and Type | Method and Description |
---|---|
static java.util.function.Consumer<org.springframework.http.HttpHeaders> |
bearerToken(java.lang.String bearerTokenValue)
Sets the provided value as a Bearer token in a header with the name of
HttpHeaders.AUTHORIZATION |
public static java.util.function.Consumer<org.springframework.http.HttpHeaders> bearerToken(java.lang.String bearerTokenValue)
HttpHeaders.AUTHORIZATION
bearerTokenValue
- the bear token valueConsumer
that sets the header.