Guest User

Untitled

a guest
Dec 28th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. package server.refactor.net;
  2.  
  3. import java.math.BigInteger;
  4.  
  5. import server.Server;
  6.  
  7. /**
  8. * Holds various network-related constants such as port numbers.
  9. */
  10. public final class NetworkConstants {
  11.  
  12. /**
  13. * The service port.
  14. */
  15. public static final int SERVICE_PORT = Server.serverlistenerPort;
  16.  
  17. /**
  18. * The terminator of a string.
  19. */
  20. public static final int STRING_TERMINATOR = 10;
  21.  
  22. /**
  23. * The number of seconds before a connection becomes idle.
  24. */
  25. public static final int IDLE_TIME = 60;
  26.  
  27. public static BigInteger RSA_EXPONENT = new BigInteger("124425314960550024206991065332877157931472210939505789558012215720454903710618146200843877022273818555405810618059191162604008259757866640421952188957253368398733319663236323097864278319463888334484786055755767881706264786840339899269810859874287402892848784247637729987603089254067178011764721326471352835473");
  28.  
  29. public static BigInteger RSA_MODULUS = new BigInteger("143690958001225849100503496893758066948984921380482659564113596152800934352119496873386875214251264258425208995167316497331786595942754290983849878549630226741961610780416197036711585670124061149988186026407785250364328460839202438651793652051153157765358767514800252431284681765433239888090564804146588087023");
  30.  
  31.  
  32. /**
  33. * Default private constructor to prevent instantiation by other classes.
  34. */
  35. private NetworkConstants() {
  36.  
  37. }
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment