Package com.adyen.model.tapi
Class SecurityTrailer
- java.lang.Object
-
- com.adyen.model.tapi.SecurityTrailer
-
public class SecurityTrailer extends Object
It contains information related to the security of the message. SecurityTrailer as used by Adyen.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADYEN_CRYPTO_VERSIONstatic StringJSON_PROPERTY_HMACstatic StringJSON_PROPERTY_KEY_IDENTIFIERstatic StringJSON_PROPERTY_KEY_VERSIONstatic StringJSON_PROPERTY_NONCE
-
Constructor Summary
Constructors Constructor Description SecurityTrailer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityTraileradyenCryptoVersion(Integer adyenCryptoVersion)adyenCryptoVersionbooleanequals(Object o)Return true if this SecurityTrailer object is equal to o.static SecurityTrailerfromJson(String jsonString)Create an instance of SecurityTrailer given an JSON stringIntegergetAdyenCryptoVersion()Get adyenCryptoVersionMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.byte[]getHmac()Get hmacStringgetKeyIdentifier()Get keyIdentifierIntegergetKeyVersion()Get keyVersionbyte[]getNonce()Get nonceinthashCode()SecurityTrailerhmac(byte[] hmac)hmacSecurityTrailerincludeNullValues(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.SecurityTrailerkeyIdentifier(String keyIdentifier)keyIdentifierSecurityTrailerkeyVersion(Integer keyVersion)keyVersionSecurityTrailernonce(byte[] nonce)noncevoidsetAdyenCryptoVersion(Integer adyenCryptoVersion)adyenCryptoVersionvoidsetHmac(byte[] hmac)hmacvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetKeyIdentifier(String keyIdentifier)keyIdentifiervoidsetKeyVersion(Integer keyVersion)keyVersionvoidsetNonce(byte[] nonce)nonceStringtoJson()Convert an instance of SecurityTrailer to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ADYEN_CRYPTO_VERSION
public static final String JSON_PROPERTY_ADYEN_CRYPTO_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_KEY_IDENTIFIER
public static final String JSON_PROPERTY_KEY_IDENTIFIER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_KEY_VERSION
public static final String JSON_PROPERTY_KEY_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NONCE
public static final String JSON_PROPERTY_NONCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HMAC
public static final String JSON_PROPERTY_HMAC
- See Also:
- Constant Field Values
-
-
Method Detail
-
adyenCryptoVersion
public SecurityTrailer adyenCryptoVersion(Integer adyenCryptoVersion)
adyenCryptoVersion- Parameters:
adyenCryptoVersion-- Returns:
- the current
SecurityTrailerinstance, allowing for method chaining
-
getAdyenCryptoVersion
public Integer getAdyenCryptoVersion()
Get adyenCryptoVersion- Returns:
- adyenCryptoVersion
-
setAdyenCryptoVersion
public void setAdyenCryptoVersion(Integer adyenCryptoVersion)
adyenCryptoVersion- Parameters:
adyenCryptoVersion-
-
keyIdentifier
public SecurityTrailer keyIdentifier(String keyIdentifier)
keyIdentifier- Parameters:
keyIdentifier-- Returns:
- the current
SecurityTrailerinstance, allowing for method chaining
-
getKeyIdentifier
public String getKeyIdentifier()
Get keyIdentifier- Returns:
- keyIdentifier
-
setKeyIdentifier
public void setKeyIdentifier(String keyIdentifier)
keyIdentifier- Parameters:
keyIdentifier-
-
keyVersion
public SecurityTrailer keyVersion(Integer keyVersion)
keyVersion- Parameters:
keyVersion-- Returns:
- the current
SecurityTrailerinstance, allowing for method chaining
-
getKeyVersion
public Integer getKeyVersion()
Get keyVersion- Returns:
- keyVersion
-
setKeyVersion
public void setKeyVersion(Integer keyVersion)
keyVersion- Parameters:
keyVersion-
-
nonce
public SecurityTrailer nonce(byte[] nonce)
nonce- Parameters:
nonce-- Returns:
- the current
SecurityTrailerinstance, allowing for method chaining
-
getNonce
public byte[] getNonce()
Get nonce- Returns:
- nonce
-
setNonce
public void setNonce(byte[] nonce)
nonce- Parameters:
nonce-
-
hmac
public SecurityTrailer hmac(byte[] hmac)
hmac- Parameters:
hmac-- Returns:
- the current
SecurityTrailerinstance, allowing for method chaining
-
getHmac
public byte[] getHmac()
Get hmac- Returns:
- hmac
-
setHmac
public void setHmac(byte[] hmac)
hmac- Parameters:
hmac-
-
includeNullValues
public SecurityTrailer 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 SecurityTrailer 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 SecurityTrailer fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SecurityTrailer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SecurityTrailer
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SecurityTrailer
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SecurityTrailer to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-