Class SecurityTrailer


  • public class SecurityTrailer
    extends Object
    It contains information related to the security of the message. SecurityTrailer as used by Adyen.
    • Constructor Detail

      • SecurityTrailer

        public SecurityTrailer()
    • Method Detail

      • adyenCryptoVersion

        public SecurityTrailer adyenCryptoVersion​(Integer adyenCryptoVersion)
        adyenCryptoVersion
        Parameters:
        adyenCryptoVersion -
        Returns:
        the current SecurityTrailer instance, 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 SecurityTrailer instance, 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 SecurityTrailer instance, 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 SecurityTrailer instance, 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 SecurityTrailer instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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