Package com.adyen.model.management
Class Profile
- java.lang.Object
-
- com.adyen.model.management.Profile
-
public class Profile extends Object
Profile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProfile.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AUTH_TYPEstatic StringSERIALIZED_NAME_AUTO_WIFIstatic StringSERIALIZED_NAME_BSS_TYPEstatic StringSERIALIZED_NAME_CHANNELstatic StringSERIALIZED_NAME_DEFAULT_PROFILEstatic StringSERIALIZED_NAME_EAPstatic StringSERIALIZED_NAME_EAP_CA_CERTstatic StringSERIALIZED_NAME_EAP_CLIENT_CERTstatic StringSERIALIZED_NAME_EAP_CLIENT_KEYstatic StringSERIALIZED_NAME_EAP_CLIENT_PWDstatic StringSERIALIZED_NAME_EAP_IDENTITYstatic StringSERIALIZED_NAME_EAP_INTERMEDIATE_CERTstatic StringSERIALIZED_NAME_EAP_PWDstatic StringSERIALIZED_NAME_HIDDEN_SSIDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PSKstatic StringSERIALIZED_NAME_SSIDstatic StringSERIALIZED_NAME_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)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)voidsetAutoWifi(Boolean autoWifi)voidsetBssType(String bssType)voidsetChannel(Integer channel)voidsetDefaultProfile(Boolean defaultProfile)voidsetEap(String eap)voidsetEapCaCert(ModelFile eapCaCert)voidsetEapClientCert(ModelFile eapClientCert)voidsetEapClientKey(ModelFile eapClientKey)voidsetEapClientPwd(String eapClientPwd)voidsetEapIdentity(String eapIdentity)voidsetEapIntermediateCert(ModelFile eapIntermediateCert)voidsetEapPwd(String eapPwd)voidsetHiddenSsid(Boolean hiddenSsid)voidsetName(String name)voidsetPsk(String psk)voidsetSsid(String ssid)voidsetWsec(String wsec)Profilessid(String ssid)StringtoJson()Convert an instance of Profile to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundProfilewsec(String wsec)
-
-
-
Field Detail
-
SERIALIZED_NAME_AUTH_TYPE
public static final String SERIALIZED_NAME_AUTH_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUTO_WIFI
public static final String SERIALIZED_NAME_AUTO_WIFI
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BSS_TYPE
public static final String SERIALIZED_NAME_BSS_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHANNEL
public static final String SERIALIZED_NAME_CHANNEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_PROFILE
public static final String SERIALIZED_NAME_DEFAULT_PROFILE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EAP
public static final String SERIALIZED_NAME_EAP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EAP_CA_CERT
public static final String SERIALIZED_NAME_EAP_CA_CERT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EAP_CLIENT_CERT
public static final String SERIALIZED_NAME_EAP_CLIENT_CERT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EAP_CLIENT_KEY
public static final String SERIALIZED_NAME_EAP_CLIENT_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EAP_CLIENT_PWD
public static final String SERIALIZED_NAME_EAP_CLIENT_PWD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EAP_IDENTITY
public static final String SERIALIZED_NAME_EAP_IDENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EAP_INTERMEDIATE_CERT
public static final String SERIALIZED_NAME_EAP_INTERMEDIATE_CERT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EAP_PWD
public static final String SERIALIZED_NAME_EAP_PWD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HIDDEN_SSID
public static final String SERIALIZED_NAME_HIDDEN_SSID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PSK
public static final String SERIALIZED_NAME_PSK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SSID
public static final String SERIALIZED_NAME_SSID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WSEC
public static final String SERIALIZED_NAME_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)
-
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)
-
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)
-
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)
-
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)
-
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)
-
getEapCaCert
public ModelFile getEapCaCert()
Get eapCaCert- Returns:
- eapCaCert
-
setEapCaCert
public void setEapCaCert(ModelFile eapCaCert)
-
getEapClientCert
public ModelFile getEapClientCert()
Get eapClientCert- Returns:
- eapClientCert
-
setEapClientCert
public void setEapClientCert(ModelFile eapClientCert)
-
getEapClientKey
public ModelFile getEapClientKey()
Get eapClientKey- Returns:
- eapClientKey
-
setEapClientKey
public void setEapClientKey(ModelFile 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)
-
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)
-
getEapIntermediateCert
public ModelFile getEapIntermediateCert()
Get eapIntermediateCert- Returns:
- eapIntermediateCert
-
setEapIntermediateCert
public void setEapIntermediateCert(ModelFile 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)
-
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)
-
getName
public String getName()
Your name for the Wi-Fi profile.- Returns:
- name
-
setName
public void setName(String 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)
-
getSsid
public String getSsid()
The name of the wireless network.- Returns:
- ssid
-
setSsid
public void setSsid(String ssid)
-
getWsec
public String getWsec()
The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip**- Returns:
- wsec
-
setWsec
public void setWsec(String wsec)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Profile
-
fromJson
public static Profile fromJson(String jsonString) throws IOException
Create an instance of Profile given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Profile
- Throws:
IOException- if the JSON string is invalid with respect to Profile
-
toJson
public String toJson()
Convert an instance of Profile to an JSON string- Returns:
- JSON string
-
-