Package com.adyen.model.management
Class Key
- java.lang.Object
-
- com.adyen.model.management.Key
-
public class Key extends Object
Key
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKey.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IDENTIFIERstatic StringSERIALIZED_NAME_PASSPHRASEstatic StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description Key()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static KeyfromJson(String jsonString)Create an instance of Key given an JSON stringStringgetIdentifier()The unique identifier of the shared key.StringgetPassphrase()The secure passphrase to protect the shared key.IntegergetVersion()The version number of the shared key.inthashCode()Keyidentifier(String identifier)Keypassphrase(String passphrase)voidsetIdentifier(String identifier)voidsetPassphrase(String passphrase)voidsetVersion(Integer version)StringtoJson()Convert an instance of Key to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundKeyversion(Integer version)
-
-
-
Field Detail
-
SERIALIZED_NAME_IDENTIFIER
public static final String SERIALIZED_NAME_IDENTIFIER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PASSPHRASE
public static final String SERIALIZED_NAME_PASSPHRASE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
The unique identifier of the shared key.- Returns:
- identifier
-
setIdentifier
public void setIdentifier(String identifier)
-
getPassphrase
public String getPassphrase()
The secure passphrase to protect the shared key.- Returns:
- passphrase
-
setPassphrase
public void setPassphrase(String passphrase)
-
getVersion
public Integer getVersion()
The version number of the shared key.- Returns:
- version
-
setVersion
public void setVersion(Integer version)
-
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 Key
-
fromJson
public static Key fromJson(String jsonString) throws IOException
Create an instance of Key given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Key
- Throws:
IOException- if the JSON string is invalid with respect to Key
-
toJson
public String toJson()
Convert an instance of Key to an JSON string- Returns:
- JSON string
-
-