1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shardingsphere.db.protocol.postgresql.packet.handshake;
19
20 import org.apache.shardingsphere.db.protocol.postgresql.packet.identifier.PostgreSQLIdentifierPacket;
21 import org.apache.shardingsphere.db.protocol.postgresql.packet.identifier.PostgreSQLIdentifierTag;
22 import org.apache.shardingsphere.db.protocol.postgresql.packet.identifier.PostgreSQLMessagePacketType;
23 import org.apache.shardingsphere.db.protocol.postgresql.payload.PostgreSQLPacketPayload;
24
25
26
27
28 public final class PostgreSQLAuthenticationOKPacket extends PostgreSQLIdentifierPacket {
29
30 @Override
31 protected void write(final PostgreSQLPacketPayload payload) {
32 payload.writeInt4(0);
33 }
34
35 @Override
36 public PostgreSQLIdentifierTag getIdentifier() {
37 return PostgreSQLMessagePacketType.AUTHENTICATION_REQUEST;
38 }
39 }