Class SecurityHeaders
- java.lang.Object
-
- org.springframework.security.web.http.SecurityHeaders
-
public final class SecurityHeaders extends java.lang.Object
Utilities for interacting withHttpHeaders
- Since:
- 5.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 ofHttpHeaders.AUTHORIZATION
-
-
-
Method Detail
-
bearerToken
public 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 ofHttpHeaders.AUTHORIZATION
- Parameters:
bearerTokenValue
- the bear token value- Returns:
- a
Consumer
that sets the header.
-
-