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 stringStringgetPublicKey()The public key you need for encrypting a symmetric session key.StringgetPublicKeyExpiryDate()The expiry date of the public key.inthashCode()PublicKeyResponsepublicKey(String publicKey)The public key you need for encrypting a symmetric session key.PublicKeyResponsepublicKeyExpiryDate(String publicKeyExpiryDate)The expiry date of the public key.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-- 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
-
setPublicKey
public void setPublicKey(String publicKey)
The public key you need for encrypting a symmetric session key.- Parameters:
publicKey-
-
publicKeyExpiryDate
public PublicKeyResponse publicKeyExpiryDate(String publicKeyExpiryDate)
The expiry date of the public key.- Parameters:
publicKeyExpiryDate-- Returns:
- the current
PublicKeyResponseinstance, allowing for method chaining
-
getPublicKeyExpiryDate
public String getPublicKeyExpiryDate()
The expiry date of the public key.- Returns:
- publicKeyExpiryDate
-
setPublicKeyExpiryDate
public void setPublicKeyExpiryDate(String publicKeyExpiryDate)
The expiry date of the public key.- Parameters:
publicKeyExpiryDate-
-
equals
public boolean equals(Object o)
Return true if this PublicKeyResponse object is equal to o.
-
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
-
-