web/src/main/java/org/springframework/security/web/http/SecurityHeaders.java
public static Consumer<HttpHeaders> bearerToken(String bearerTokenValue) {
		Assert.hasText(bearerTokenValue, "bearerTokenValue cannot be null");
		return headers -> headers.set(HttpHeaders.AUTHORIZATION, "Bearer " + bearerTokenValue);
	}
public static Consumer<HttpHeaders> bearerToken(String bearerTokenValue) {
		Assert.hasText(bearerTokenValue, "bearerTokenValue cannot be null");
		return headers -> headers.set(HttpHeaders.AUTHORIZATION, "Bearer " + bearerTokenValue);
	}
public static Consumer < HttpHeaders > bearerToken ( String bearerTokenValue ) { Assert . hasText ( bearerTokenValue , "bearerTokenValue cannot be null" ) ; return headers -> headers . set ( HttpHeaders . AUTHORIZATION , "Bearer " + bearerTokenValue ) ; }
Sets the provided value as a Bearer token in a header with the name of {@link HttpHeaders#AUTHORIZATION}
@param bearerTokenValue the bear token value
@return a {@link Consumer} that sets the header.
Sets the provided value as a Bearer token in a header with the name of {