Package com.adyen.model.management
Class Key
- java.lang.Object
-
- com.adyen.model.management.Key
-
public class Key extends Object
Key
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_IDENTIFIERstatic StringJSON_PROPERTY_PASSPHRASEstatic StringJSON_PROPERTY_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)Return true if this Key object is equal to 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)The unique identifier of the shared key.Keypassphrase(String passphrase)The secure passphrase to protect the shared key.voidsetIdentifier(String identifier)The unique identifier of the shared key.voidsetPassphrase(String passphrase)The secure passphrase to protect the shared key.voidsetVersion(Integer version)The version number of the shared key.StringtoJson()Convert an instance of Key to an JSON stringStringtoString()Keyversion(Integer version)The version number of the shared key.
-
-
-
Field Detail
-
JSON_PROPERTY_IDENTIFIER
public static final String JSON_PROPERTY_IDENTIFIER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSPHRASE
public static final String JSON_PROPERTY_PASSPHRASE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERSION
public static final String JSON_PROPERTY_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
identifier
public Key identifier(String identifier)
The unique identifier of the shared key.- Parameters:
identifier-- Returns:
- the current
Keyinstance, allowing for method chaining
-
getIdentifier
public String getIdentifier()
The unique identifier of the shared key.- Returns:
- identifier
-
setIdentifier
public void setIdentifier(String identifier)
The unique identifier of the shared key.- Parameters:
identifier-
-
passphrase
public Key passphrase(String passphrase)
The secure passphrase to protect the shared key.- Parameters:
passphrase-- Returns:
- the current
Keyinstance, allowing for method chaining
-
getPassphrase
public String getPassphrase()
The secure passphrase to protect the shared key.- Returns:
- passphrase
-
setPassphrase
public void setPassphrase(String passphrase)
The secure passphrase to protect the shared key.- Parameters:
passphrase-
-
version
public Key version(Integer version)
The version number of the shared key.- Parameters:
version-- Returns:
- the current
Keyinstance, allowing for method chaining
-
getVersion
public Integer getVersion()
The version number of the shared key.- Returns:
- version
-
setVersion
public void setVersion(Integer version)
The version number of the shared key.- Parameters:
version-
-
equals
public boolean equals(Object o)
Return true if this Key object is equal to o.
-
fromJson
public static Key fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Key given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Key
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Key
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Key to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-