java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.config.configs.NetConfig

public class NetConfig extends Object
Represents a net config of application.
  • Field Details

    • address

      public final String address
    • port

      public final String port
    • username

      public final String username
    • password

      public final String password
  • Method Details

    • loadNetConfig

      public static NetConfig loadNetConfig(@NotNull @NotNull Properties netProperty) throws IOException
      Creates new instance of NetConfig from net config '.properties' file.
      Parameters:
      netProperty - net config properties file
      Returns:
      new NetConfig
      Throws:
      IOException - if any properties expected value is missing
    • getAuthenticator

      public Authenticator getAuthenticator()
      Gets net config connection Authenticator.
      Returns:
      net config connection Authenticator
    • getAddress

      public String getAddress()
    • getPort

      public String getPort()
    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()