Class BearerTokenMetadata

java.lang.Object
org.springframework.security.rsocket.metadata.BearerTokenMetadata

public class BearerTokenMetadata extends Object
Represents a bearer token that has been encoded into a Payload#metadata().
Since:
5.2
  • Field Details

    • BEARER_AUTHENTICATION_MIME_TYPE

      @Deprecated public static final org.springframework.util.MimeType BEARER_AUTHENTICATION_MIME_TYPE
      Deprecated.
      Basic did not evolve into the standard. Instead use Simple Authentication MimeTypeUtils.parseMimeType(WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION.getString())
      Represents a bearer token which is encoded as a String. See rsocket/rsocket#272
  • Constructor Details

    • BearerTokenMetadata

      public BearerTokenMetadata(String token)
  • Method Details

    • getToken

      public String getToken()