Skip to content

Commit

Permalink
toString format
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Apr 17, 2022
1 parent 065f2d5 commit a642159
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.azisaba.azipluginmessaging.api.entity.Player;
import net.azisaba.azipluginmessaging.api.protocol.Protocol;
import net.azisaba.azipluginmessaging.api.server.PacketSender;
import net.azisaba.azipluginmessaging.api.util.EncryptionUtil;
import net.azisaba.azipluginmessaging.spigot.SpigotPlugin;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -113,6 +114,8 @@ public boolean isChallengeEquals(@NotNull String challenge) {
public String toString() {
return "PlayerImpl{" +
"handle=" + handle +
", publicKey=" + EncryptionUtil.encodePublicKey(keyPair.getPublic()) +
", remotePublicKey=" + EncryptionUtil.encodePublicKey(remotePublicKey) +
", encrypted=" + encrypted +
'}';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.azisaba.azipluginmessaging.api.protocol.Protocol;
import net.azisaba.azipluginmessaging.api.server.ServerConnection;
import net.azisaba.azipluginmessaging.api.server.ServerInfo;
import net.azisaba.azipluginmessaging.api.util.EncryptionUtil;
import net.azisaba.azipluginmessaging.velocity.entity.PlayerImpl;
import org.jetbrains.annotations.NotNull;

Expand Down Expand Up @@ -111,6 +112,8 @@ public String toString() {
return "ServerConnectionImpl{" +
"handle=" + handle +
", encrypted=" + encrypted +
", publicKey=" + EncryptionUtil.encodePublicKey(keyPair.getPublic()) +
", remotePublicKey=" + EncryptionUtil.encodePublicKey(publicKey) +
'}';
}
}

0 comments on commit a642159

Please sign in to comment.