Package com.adyen.model.management
Class Profile
- java.lang.Object
-
- com.adyen.model.management.Profile
-
public class Profile extends Object
Profile
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTH_TYPEstatic StringJSON_PROPERTY_AUTO_WIFIstatic StringJSON_PROPERTY_BSS_TYPEstatic StringJSON_PROPERTY_CHANNELstatic StringJSON_PROPERTY_DEFAULT_PROFILEstatic StringJSON_PROPERTY_EAPstatic StringJSON_PROPERTY_EAP_CA_CERTstatic StringJSON_PROPERTY_EAP_CLIENT_CERTstatic StringJSON_PROPERTY_EAP_CLIENT_KEYstatic StringJSON_PROPERTY_EAP_CLIENT_PWDstatic StringJSON_PROPERTY_EAP_IDENTITYstatic StringJSON_PROPERTY_EAP_INTERMEDIATE_CERTstatic StringJSON_PROPERTY_EAP_PWDstatic StringJSON_PROPERTY_HIDDEN_SSIDstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PSKstatic StringJSON_PROPERTY_SSIDstatic StringJSON_PROPERTY_WSEC
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileauthType(String authType)ProfileautoWifi(Boolean autoWifi)ProfilebssType(String bssType)Profilechannel(Integer channel)ProfiledefaultProfile(Boolean defaultProfile)Profileeap(String eap)ProfileeapCaCert(ModelFile eapCaCert)ProfileeapClientCert(ModelFile eapClientCert)ProfileeapClientKey(ModelFile eapClientKey)ProfileeapClientPwd(String eapClientPwd)ProfileeapIdentity(String eapIdentity)ProfileeapIntermediateCert(ModelFile eapIntermediateCert)ProfileeapPwd(String eapPwd)booleanequals(Object o)Return true if this Profile object is equal to o.static ProfilefromJson(String jsonString)Create an instance of Profile given an JSON stringStringgetAuthType()The type of Wi-Fi network.BooleangetAutoWifi()Indicates whether to automatically select the best authentication method available.StringgetBssType()Use **infra** for infrastructure-based networks.IntegergetChannel()The channel number of the Wi-Fi network.BooleangetDefaultProfile()Indicates whether this is your preferred wireless network.StringgetEap()For `authType` **wpa-eap** or **wpa2-eap**.ModelFilegetEapCaCert()Get eapCaCertModelFilegetEapClientCert()Get eapClientCertModelFilegetEapClientKey()Get eapClientKeyStringgetEapClientPwd()For `eap` **tls**.StringgetEapIdentity()For `authType` **wpa-eap** or **wpa2-eap**.ModelFilegetEapIntermediateCert()Get eapIntermediateCertStringgetEapPwd()For `eap` **peap**.BooleangetHiddenSsid()Indicates if the network doesn't broadcast its SSID.StringgetName()Your name for the Wi-Fi profile.StringgetPsk()For `authType` **wpa-psk or **wpa2-psk**.StringgetSsid()The name of the wireless network.StringgetWsec()The type of encryption.inthashCode()ProfilehiddenSsid(Boolean hiddenSsid)Profilename(String name)Profilepsk(String psk)voidsetAuthType(String authType)The type of Wi-Fi network.voidsetAutoWifi(Boolean autoWifi)Indicates whether to automatically select the best authentication method available.voidsetBssType(String bssType)Use **infra** for infrastructure-based networks.voidsetChannel(Integer channel)The channel number of the Wi-Fi network.voidsetDefaultProfile(Boolean defaultProfile)Indicates whether this is your preferred wireless network.voidsetEap(String eap)For `authType` **wpa-eap** or **wpa2-eap**.voidsetEapCaCert(ModelFile eapCaCert)eapCaCertvoidsetEapClientCert(ModelFile eapClientCert)eapClientCertvoidsetEapClientKey(ModelFile eapClientKey)eapClientKeyvoidsetEapClientPwd(String eapClientPwd)For `eap` **tls**.voidsetEapIdentity(String eapIdentity)For `authType` **wpa-eap** or **wpa2-eap**.voidsetEapIntermediateCert(ModelFile eapIntermediateCert)eapIntermediateCertvoidsetEapPwd(String eapPwd)For `eap` **peap**.voidsetHiddenSsid(Boolean hiddenSsid)Indicates if the network doesn't broadcast its SSID.voidsetName(String name)Your name for the Wi-Fi profile.voidsetPsk(String psk)For `authType` **wpa-psk or **wpa2-psk**.voidsetSsid(String ssid)The name of the wireless network.voidsetWsec(String wsec)The type of encryption.Profilessid(String ssid)StringtoJson()Convert an instance of Profile to an JSON stringStringtoString()Profilewsec(String wsec)
-
-
-
Field Detail
-
JSON_PROPERTY_AUTH_TYPE
public static final String JSON_PROPERTY_AUTH_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTO_WIFI
public static final String JSON_PROPERTY_AUTO_WIFI
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BSS_TYPE
public static final String JSON_PROPERTY_BSS_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHANNEL
public static final String JSON_PROPERTY_CHANNEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEFAULT_PROFILE
public static final String JSON_PROPERTY_DEFAULT_PROFILE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAP
public static final String JSON_PROPERTY_EAP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAP_CA_CERT
public static final String JSON_PROPERTY_EAP_CA_CERT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAP_CLIENT_CERT
public static final String JSON_PROPERTY_EAP_CLIENT_CERT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAP_CLIENT_KEY
public static final String JSON_PROPERTY_EAP_CLIENT_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAP_CLIENT_PWD
public static final String JSON_PROPERTY_EAP_CLIENT_PWD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAP_IDENTITY
public static final String JSON_PROPERTY_EAP_IDENTITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAP_INTERMEDIATE_CERT
public static final String JSON_PROPERTY_EAP_INTERMEDIATE_CERT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAP_PWD
public static final String JSON_PROPERTY_EAP_PWD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDDEN_SSID
public static final String JSON_PROPERTY_HIDDEN_SSID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSK
public static final String JSON_PROPERTY_PSK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SSID
public static final String JSON_PROPERTY_SSID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WSEC
public static final String JSON_PROPERTY_WSEC
- See Also:
- Constant Field Values
-
-
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-
-
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-
-
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-
-
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-
-
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.
-
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
-
-