Class UsernamePasswordMetadata

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

public final class UsernamePasswordMetadata extends Object
Represents a username and password that have been encoded into a Payload.metadata().
Since:
5.2
  • Field Details

    • BASIC_AUTHENTICATION_MIME_TYPE

      @Deprecated public static final org.springframework.util.MimeType BASIC_AUTHENTICATION_MIME_TYPE
      Deprecated.
      Basic did not evolve into the standard. Instead use Simple Authentication MimeTypeUtils.parseMimeType(WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION.getString())
      Represents a username password which is encoded as ${username-bytes-length}${username-bytes}${password-bytes}. See rsocket/rsocket#272
  • Constructor Details

    • UsernamePasswordMetadata

      public UsernamePasswordMetadata(String username, String password)
  • Method Details

    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()