Class UsernamePasswordMetadata
- java.lang.Object
-
- org.springframework.security.rsocket.metadata.UsernamePasswordMetadata
-
public final class UsernamePasswordMetadata extends java.lang.Object
Represents a username and password that have been encoded into aPayload.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()
-
-
-
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
-
-