* The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for encrypted pin block
* generation.
*
* The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have * the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by * using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result * to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. *
*/ private String encryptionKeyCheckValue; /** *
* The keyARN
of the PIN encryption key that Amazon Web Services Payment Cryptography uses for PIN or
* PIN Offset verification.
*
* The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have * the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by * using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result * to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. *
*/ private String verificationKeyCheckValue; /** *
* The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for encrypted pin block
* generation.
*
keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for encrypted pin
* block generation.
*/
public void setEncryptionKeyArn(String encryptionKeyArn) {
this.encryptionKeyArn = encryptionKeyArn;
}
/**
*
* The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for encrypted pin block
* generation.
*
keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for encrypted pin
* block generation.
*/
public String getEncryptionKeyArn() {
return this.encryptionKeyArn;
}
/**
*
* The keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for encrypted pin block
* generation.
*
keyARN
of the PEK that Amazon Web Services Payment Cryptography uses for encrypted pin
* block generation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifyPinDataResult withEncryptionKeyArn(String encryptionKeyArn) {
setEncryptionKeyArn(encryptionKeyArn);
return this;
}
/**
* * The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have * the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by * using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result * to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. *
* * @param encryptionKeyCheckValue * The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given * key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography * calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. */ public void setEncryptionKeyCheckValue(String encryptionKeyCheckValue) { this.encryptionKeyCheckValue = encryptionKeyCheckValue; } /** ** The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have * the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by * using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result * to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. *
* * @return The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given * key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography * calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" * and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. */ public String getEncryptionKeyCheckValue() { return this.encryptionKeyCheckValue; } /** ** The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have * the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by * using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result * to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. *
* * @param encryptionKeyCheckValue * The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given * key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography * calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifyPinDataResult withEncryptionKeyCheckValue(String encryptionKeyCheckValue) { setEncryptionKeyCheckValue(encryptionKeyCheckValue); return this; } /** *
* The keyARN
of the PIN encryption key that Amazon Web Services Payment Cryptography uses for PIN or
* PIN Offset verification.
*
keyARN
of the PIN encryption key that Amazon Web Services Payment Cryptography uses for
* PIN or PIN Offset verification.
*/
public void setVerificationKeyArn(String verificationKeyArn) {
this.verificationKeyArn = verificationKeyArn;
}
/**
*
* The keyARN
of the PIN encryption key that Amazon Web Services Payment Cryptography uses for PIN or
* PIN Offset verification.
*
keyARN
of the PIN encryption key that Amazon Web Services Payment Cryptography uses for
* PIN or PIN Offset verification.
*/
public String getVerificationKeyArn() {
return this.verificationKeyArn;
}
/**
*
* The keyARN
of the PIN encryption key that Amazon Web Services Payment Cryptography uses for PIN or
* PIN Offset verification.
*
keyARN
of the PIN encryption key that Amazon Web Services Payment Cryptography uses for
* PIN or PIN Offset verification.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifyPinDataResult withVerificationKeyArn(String verificationKeyArn) {
setVerificationKeyArn(verificationKeyArn);
return this;
}
/**
* * The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have * the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by * using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result * to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. *
* * @param verificationKeyCheckValue * The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given * key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography * calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. */ public void setVerificationKeyCheckValue(String verificationKeyCheckValue) { this.verificationKeyCheckValue = verificationKeyCheckValue; } /** ** The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have * the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by * using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result * to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. *
* * @return The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given * key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography * calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" * and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. */ public String getVerificationKeyCheckValue() { return this.verificationKeyCheckValue; } /** ** The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have * the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by * using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result * to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. *
* * @param verificationKeyCheckValue * The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given * key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography * calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifyPinDataResult withVerificationKeyCheckValue(String verificationKeyCheckValue) { setVerificationKeyCheckValue(verificationKeyCheckValue); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEncryptionKeyArn() != null) sb.append("EncryptionKeyArn: ").append(getEncryptionKeyArn()).append(","); if (getEncryptionKeyCheckValue() != null) sb.append("EncryptionKeyCheckValue: ").append(getEncryptionKeyCheckValue()).append(","); if (getVerificationKeyArn() != null) sb.append("VerificationKeyArn: ").append(getVerificationKeyArn()).append(","); if (getVerificationKeyCheckValue() != null) sb.append("VerificationKeyCheckValue: ").append(getVerificationKeyCheckValue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VerifyPinDataResult == false) return false; VerifyPinDataResult other = (VerifyPinDataResult) obj; if (other.getEncryptionKeyArn() == null ^ this.getEncryptionKeyArn() == null) return false; if (other.getEncryptionKeyArn() != null && other.getEncryptionKeyArn().equals(this.getEncryptionKeyArn()) == false) return false; if (other.getEncryptionKeyCheckValue() == null ^ this.getEncryptionKeyCheckValue() == null) return false; if (other.getEncryptionKeyCheckValue() != null && other.getEncryptionKeyCheckValue().equals(this.getEncryptionKeyCheckValue()) == false) return false; if (other.getVerificationKeyArn() == null ^ this.getVerificationKeyArn() == null) return false; if (other.getVerificationKeyArn() != null && other.getVerificationKeyArn().equals(this.getVerificationKeyArn()) == false) return false; if (other.getVerificationKeyCheckValue() == null ^ this.getVerificationKeyCheckValue() == null) return false; if (other.getVerificationKeyCheckValue() != null && other.getVerificationKeyCheckValue().equals(this.getVerificationKeyCheckValue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEncryptionKeyArn() == null) ? 0 : getEncryptionKeyArn().hashCode()); hashCode = prime * hashCode + ((getEncryptionKeyCheckValue() == null) ? 0 : getEncryptionKeyCheckValue().hashCode()); hashCode = prime * hashCode + ((getVerificationKeyArn() == null) ? 0 : getVerificationKeyArn().hashCode()); hashCode = prime * hashCode + ((getVerificationKeyCheckValue() == null) ? 0 : getVerificationKeyCheckValue().hashCode()); return hashCode; } @Override public VerifyPinDataResult clone() { try { return (VerifyPinDataResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }