public final class SASLInitialResponse extends Object implements FrontendMessage
FrontendMessage.DirectEncoder
Constructor and Description |
---|
SASLInitialResponse(ByteBuffer initialResponse,
String name)
Create a new message.
|
Modifier and Type | Method and Description |
---|---|
Publisher<io.netty.buffer.ByteBuf> |
encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
Encode a message into a
ByteBuf . |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public SASLInitialResponse(@Nullable ByteBuffer initialResponse, String name)
initialResponse
- SASL mechanism specific "Initial Response"name
- name of the SASL authentication mechanism that the client selectedIllegalArgumentException
- if name
is null
public Publisher<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
FrontendMessage
ByteBuf
.encode
in interface FrontendMessage
byteBufAllocator
- the byteBufAllocator to use to get a ByteBuf
to write intoPublisher
that produces the ByteBuf
containing the encoded messageCopyright © 2022. All rights reserved.