Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package server.refactor.net;
- import java.math.BigInteger;
- import server.Server;
- /**
- * Holds various network-related constants such as port numbers.
- */
- public final class NetworkConstants {
- /**
- * The service port.
- */
- public static final int SERVICE_PORT = Server.serverlistenerPort;
- /**
- * The terminator of a string.
- */
- public static final int STRING_TERMINATOR = 10;
- /**
- * The number of seconds before a connection becomes idle.
- */
- public static final int IDLE_TIME = 60;
- public static BigInteger RSA_EXPONENT = new BigInteger("124425314960550024206991065332877157931472210939505789558012215720454903710618146200843877022273818555405810618059191162604008259757866640421952188957253368398733319663236323097864278319463888334484786055755767881706264786840339899269810859874287402892848784247637729987603089254067178011764721326471352835473");
- public static BigInteger RSA_MODULUS = new BigInteger("143690958001225849100503496893758066948984921380482659564113596152800934352119496873386875214251264258425208995167316497331786595942754290983849878549630226741961610780416197036711585670124061149988186026407785250364328460839202438651793652051153157765358767514800252431284681765433239888090564804146588087023");
- /**
- * Default private constructor to prevent instantiation by other classes.
- */
- private NetworkConstants() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment