Class SecurityHeaders
java.lang.Object
org.springframework.security.web.http.SecurityHeaders
Utilities for interacting with
HttpHeaders- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic Consumer<org.springframework.http.HttpHeaders>bearerToken(String bearerTokenValue) Sets the provided value as a Bearer token in a header with the name ofHttpHeaders.AUTHORIZATION
-
Method Details
-
bearerToken
Sets the provided value as a Bearer token in a header with the name ofHttpHeaders.AUTHORIZATION- Parameters:
bearerTokenValue- the bear token value- Returns:
- a
Consumerthat sets the header.
-