Class UsernamePasswordMetadata


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

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

      Constructors 
      Constructor Description
      UsernamePasswordMetadata​(java.lang.String username, java.lang.String password)  
    • Method Summary

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

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

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

      • UsernamePasswordMetadata

        public UsernamePasswordMetadata​(java.lang.String username,
                                        java.lang.String password)
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
      • getPassword

        public java.lang.String getPassword()