Class Profile


  • public class Profile
    extends Object
    Profile
    • Constructor Detail

      • Profile

        public Profile()
    • Method Detail

      • 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 -
      • 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 -
      • 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 -
      • 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)
      • 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 -
      • 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 -
      • getEapCaCert

        public ModelFile getEapCaCert()
        Get eapCaCert
        Returns:
        eapCaCert
      • setEapCaCert

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

        public ModelFile getEapClientCert()
        Get eapClientCert
        Returns:
        eapClientCert
      • setEapClientCert

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

        public ModelFile getEapClientKey()
        Get eapClientKey
        Returns:
        eapClientKey
      • setEapClientKey

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

        public Profile eapClientPwd​(String eapClientPwd)
      • 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)
      • 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)
      • getEapIntermediateCert

        public ModelFile getEapIntermediateCert()
        Get eapIntermediateCert
        Returns:
        eapIntermediateCert
      • setEapIntermediateCert

        public void setEapIntermediateCert​(ModelFile eapIntermediateCert)
        eapIntermediateCert
        Parameters:
        eapIntermediateCert -
      • 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 -
      • 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 -
      • 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 -
      • 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 -
      • 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 -
      • 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