Class SecurityHeaders


  • public final class SecurityHeaders
    extends java.lang.Object
    Utilities for interacting with HttpHeaders
    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 of HttpHeaders.AUTHORIZATION
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 of HttpHeaders.AUTHORIZATION
        Parameters:
        bearerTokenValue - the bear token value
        Returns:
        a Consumer that sets the header.