Class Profile


  • public class Profile
    extends Object
    Profile
    • Constructor Detail

      • Profile

        public Profile()
    • Method Detail

      • authType

        public Profile authType​(String authType)
        The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**.
        Parameters:
        authType -
        Returns:
        the current Profile instance, allowing for method chaining
      • getAuthType

        public String getAuthType()
        The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**.
        Returns:
        authType
      • setAuthType

        public void setAuthType​(String authType)
        The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**.
        Parameters:
        authType -
      • autoWifi

        public Profile autoWifi​(Boolean autoWifi)
        Indicates whether to automatically select the best authentication method available. Does not work on older terminal models.
        Parameters:
        autoWifi -
        Returns:
        the current Profile instance, allowing for method chaining
      • getAutoWifi

        public Boolean getAutoWifi()
        Indicates whether to automatically select the best authentication method available. Does not work on older terminal models.
        Returns:
        autoWifi
      • setAutoWifi

        public void setAutoWifi​(Boolean autoWifi)
        Indicates whether to automatically select the best authentication method available. Does not work on older terminal models.
        Parameters:
        autoWifi -
      • bssType

        public Profile bssType​(String bssType)
        Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations.
        Parameters:
        bssType -
        Returns:
        the current Profile instance, allowing for method chaining
      • getBssType

        public String getBssType()
        Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations.
        Returns:
        bssType
      • setBssType

        public void setBssType​(String bssType)
        Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations.
        Parameters:
        bssType -
      • channel

        public Profile channel​(Integer channel)
        The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection.
        Parameters:
        channel -
        Returns:
        the current Profile instance, allowing for method chaining
      • getChannel

        public Integer getChannel()
        The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection.
        Returns:
        channel
      • setChannel

        public void setChannel​(Integer channel)
        The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection.
        Parameters:
        channel -
      • defaultProfile

        public Profile defaultProfile​(Boolean defaultProfile)
        Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first.
        Parameters:
        defaultProfile -
        Returns:
        the current Profile instance, allowing for method chaining
      • getDefaultProfile

        public Boolean getDefaultProfile()
        Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first.
        Returns:
        defaultProfile
      • setDefaultProfile

        public void setDefaultProfile​(Boolean defaultProfile)
        Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first.
        Parameters:
        defaultProfile -
      • eap

        public Profile eap​(String eap)
        For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast**
        Parameters:
        eap -
        Returns:
        the current Profile instance, allowing for method chaining
      • getEap

        public String getEap()
        For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast**
        Returns:
        eap
      • setEap

        public void setEap​(String eap)
        For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast**
        Parameters:
        eap -
      • eapCaCert

        public Profile eapCaCert​(ModelFile eapCaCert)
        eapCaCert
        Parameters:
        eapCaCert -
        Returns:
        the current Profile instance, allowing for method chaining
      • getEapCaCert

        public ModelFile getEapCaCert()
        eapCaCert
        Returns:
        eapCaCert
      • setEapCaCert

        public void setEapCaCert​(ModelFile eapCaCert)
        eapCaCert
        Parameters:
        eapCaCert -
      • eapClientCert

        public Profile eapClientCert​(ModelFile eapClientCert)
        eapClientCert
        Parameters:
        eapClientCert -
        Returns:
        the current Profile instance, allowing for method chaining
      • getEapClientCert

        public ModelFile getEapClientCert()
        eapClientCert
        Returns:
        eapClientCert
      • setEapClientCert

        public void setEapClientCert​(ModelFile eapClientCert)
        eapClientCert
        Parameters:
        eapClientCert -
      • eapClientKey

        public Profile eapClientKey​(ModelFile eapClientKey)
        eapClientKey
        Parameters:
        eapClientKey -
        Returns:
        the current Profile instance, allowing for method chaining
      • getEapClientKey

        public ModelFile getEapClientKey()
        eapClientKey
        Returns:
        eapClientKey
      • setEapClientKey

        public void setEapClientKey​(ModelFile eapClientKey)
        eapClientKey
        Parameters:
        eapClientKey -
      • eapClientPwd

        public Profile eapClientPwd​(String eapClientPwd)
        For `eap` **tls**. The password of the RSA key file, if that file is password-protected.
        Parameters:
        eapClientPwd -
        Returns:
        the current Profile instance, allowing for method chaining
      • getEapClientPwd

        public String getEapClientPwd()
        For `eap` **tls**. The password of the RSA key file, if that file is password-protected.
        Returns:
        eapClientPwd
      • setEapClientPwd

        public void setEapClientPwd​(String eapClientPwd)
        For `eap` **tls**. The password of the RSA key file, if that file is password-protected.
        Parameters:
        eapClientPwd -
      • eapIdentity

        public Profile eapIdentity​(String eapIdentity)
        For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server.
        Parameters:
        eapIdentity -
        Returns:
        the current Profile instance, allowing for method chaining
      • getEapIdentity

        public String getEapIdentity()
        For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server.
        Returns:
        eapIdentity
      • setEapIdentity

        public void setEapIdentity​(String eapIdentity)
        For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server.
        Parameters:
        eapIdentity -
      • eapIntermediateCert

        public Profile eapIntermediateCert​(ModelFile eapIntermediateCert)
        eapIntermediateCert
        Parameters:
        eapIntermediateCert -
        Returns:
        the current Profile instance, allowing for method chaining
      • getEapIntermediateCert

        public ModelFile getEapIntermediateCert()
        eapIntermediateCert
        Returns:
        eapIntermediateCert
      • setEapIntermediateCert

        public void setEapIntermediateCert​(ModelFile eapIntermediateCert)
        eapIntermediateCert
        Parameters:
        eapIntermediateCert -
      • eapPwd

        public Profile eapPwd​(String eapPwd)
        For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server.
        Parameters:
        eapPwd -
        Returns:
        the current Profile instance, allowing for method chaining
      • getEapPwd

        public String getEapPwd()
        For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server.
        Returns:
        eapPwd
      • setEapPwd

        public void setEapPwd​(String eapPwd)
        For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server.
        Parameters:
        eapPwd -
      • hiddenSsid

        public Profile hiddenSsid​(Boolean hiddenSsid)
        Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network.
        Parameters:
        hiddenSsid -
        Returns:
        the current Profile instance, allowing for method chaining
      • getHiddenSsid

        public Boolean getHiddenSsid()
        Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network.
        Returns:
        hiddenSsid
      • setHiddenSsid

        public void setHiddenSsid​(Boolean hiddenSsid)
        Indicates if the network doesn't broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network.
        Parameters:
        hiddenSsid -
      • name

        public Profile name​(String name)
        Your name for the Wi-Fi profile.
        Parameters:
        name -
        Returns:
        the current Profile instance, allowing for method chaining
      • getName

        public String getName()
        Your name for the Wi-Fi profile.
        Returns:
        name
      • setName

        public void setName​(String name)
        Your name for the Wi-Fi profile.
        Parameters:
        name -
      • psk

        public Profile psk​(String psk)
        For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network.
        Parameters:
        psk -
        Returns:
        the current Profile instance, allowing for method chaining
      • getPsk

        public String getPsk()
        For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network.
        Returns:
        psk
      • setPsk

        public void setPsk​(String psk)
        For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network.
        Parameters:
        psk -
      • ssid

        public Profile ssid​(String ssid)
        The name of the wireless network.
        Parameters:
        ssid -
        Returns:
        the current Profile instance, allowing for method chaining
      • getSsid

        public String getSsid()
        The name of the wireless network.
        Returns:
        ssid
      • setSsid

        public void setSsid​(String ssid)
        The name of the wireless network.
        Parameters:
        ssid -
      • wsec

        public Profile wsec​(String wsec)
        The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip**
        Parameters:
        wsec -
        Returns:
        the current Profile instance, allowing for method chaining
      • getWsec

        public String getWsec()
        The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip**
        Returns:
        wsec
      • setWsec

        public void setWsec​(String wsec)
        The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip**
        Parameters:
        wsec -
      • equals

        public boolean equals​(Object o)
        Return true if this Profile object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Profile fromJson​(String jsonString)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Profile given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Profile
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Profile
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Profile to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException