Class BearerTokenMetadata


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

      Fields 
      Modifier and Type Field Description
      static org.springframework.util.MimeType BEARER_AUTHENTICATION_MIME_TYPE
      Deprecated.
      Basic did not evolve into the standard.
    • Constructor Summary

      Constructors 
      Constructor Description
      BearerTokenMetadata​(java.lang.String token)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getToken()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • BearerTokenMetadata

        public BearerTokenMetadata​(java.lang.String token)
    • Method Detail

      • getToken

        public java.lang.String getToken()