Package com.adyen.model.balanceplatform
Class PublicKeyResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.PublicKeyResponse
-
public class PublicKeyResponse extends Object
PublicKeyResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PUBLIC_KEYstatic StringJSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE
-
Constructor Summary
Constructors Constructor Description PublicKeyResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this PublicKeyResponse object is equal to o.static PublicKeyResponsefromJson(String jsonString)Create an instance of PublicKeyResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPublicKey()The public key you need for encrypting a symmetric session key.StringgetPublicKeyExpiryDate()The expiry date of the public key.inthashCode()PublicKeyResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PublicKeyResponsepublicKey(String publicKey)The public key you need for encrypting a symmetric session key.PublicKeyResponsepublicKeyExpiryDate(String publicKeyExpiryDate)The expiry date of the public key.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPublicKey(String publicKey)The public key you need for encrypting a symmetric session key.voidsetPublicKeyExpiryDate(String publicKeyExpiryDate)The expiry date of the public key.StringtoJson()Convert an instance of PublicKeyResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PUBLIC_KEY
public static final String JSON_PROPERTY_PUBLIC_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE
public static final String JSON_PROPERTY_PUBLIC_KEY_EXPIRY_DATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
publicKey
public PublicKeyResponse publicKey(String publicKey)
The public key you need for encrypting a symmetric session key.- Parameters:
publicKey- The public key you need for encrypting a symmetric session key.- Returns:
- the current
PublicKeyResponseinstance, allowing for method chaining
-
getPublicKey
public String getPublicKey()
The public key you need for encrypting a symmetric session key.- Returns:
- publicKey The public key you need for encrypting a symmetric session key.
-
setPublicKey
public void setPublicKey(String publicKey)
The public key you need for encrypting a symmetric session key.- Parameters:
publicKey- The public key you need for encrypting a symmetric session key.
-
publicKeyExpiryDate
public PublicKeyResponse publicKeyExpiryDate(String publicKeyExpiryDate)
The expiry date of the public key.- Parameters:
publicKeyExpiryDate- The expiry date of the public key.- Returns:
- the current
PublicKeyResponseinstance, allowing for method chaining
-
getPublicKeyExpiryDate
public String getPublicKeyExpiryDate()
The expiry date of the public key.- Returns:
- publicKeyExpiryDate The expiry date of the public key.
-
setPublicKeyExpiryDate
public void setPublicKeyExpiryDate(String publicKeyExpiryDate)
The expiry date of the public key.- Parameters:
publicKeyExpiryDate- The expiry date of the public key.
-
includeNullValues
public PublicKeyResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PublicKeyResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static PublicKeyResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PublicKeyResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublicKeyResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PublicKeyResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PublicKeyResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-