public class AuthenticationDecoder extends java.lang.Object implements Decoder<Authentication>
AuthenticationOk (B)
Byte1('R')
Identifies the message as an authentication request.
Int32(8)
Length of message contents in bytes, including self.
Int32(0)
Specifies that the authentication was successful.
AuthenticationMD5Password (B)
Byte1('R')
Identifies the message as an authentication request.
Int32(12)
Length of message contents in bytes, including self.
Int32(5)
Specifies that an MD5-encrypted password is required.
Byte4
The salt to use when encrypting the password.
| Constructor and Description |
|---|
AuthenticationDecoder() |
| Modifier and Type | Method and Description |
|---|---|
byte |
getMessageId() |
Authentication |
read(java.nio.ByteBuffer buffer) |
public byte getMessageId()
getMessageId in interface Decoder<Authentication>public Authentication read(java.nio.ByteBuffer buffer)
read in interface Decoder<Authentication>Copyright © 2014. All Rights Reserved.