Interface CommonSignatureVerificationData<T extends CommonSignatureVerificationData<T>>
-
- Type Parameters:
T
- The type of the lowest level child object.
- All Known Subinterfaces:
BasicSignatureVerificationData
,TraceableSignatureVerificationData
public interface CommonSignatureVerificationData<T extends CommonSignatureVerificationData<T>>
Contains the input/output data of theCommonTransactionManager.prepareVerifySignature(CommonSignatureVerificationData)
method for common signature verification modes.- Since:
- 1.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSignatureValid()
Returns the result of the signature verification process by indicating if the signature is valid or not.T
setData(byte[] data, byte[] signature, byte kif, byte kvc)
Sets the signed data, the associated signature and the KIF/KVC of the key to be used for the signature verification.T
setKeyDiversifier(byte[] diversifier)
Sets a specific key diversifier to use before verifying the signature (optional).
-
-
-
Method Detail
-
setData
T setData(byte[] data, byte[] signature, byte kif, byte kvc)
Sets the signed data, the associated signature and the KIF/KVC of the key to be used for the signature verification.- Parameters:
data
- The signed data.signature
- The associated signature.kif
- The KIF of the key to be used for the signature verification.kvc
- The KVC of the key to be used for the signature verification.- Returns:
- The current instance.
- Since:
- 1.2.0
-
setKeyDiversifier
T setKeyDiversifier(byte[] diversifier)
Sets a specific key diversifier to use before verifying the signature (optional).By default, the key diversification is performed with the full serial number of the target card or SAM depending on the transaction context (Card or SAM transaction).
- Parameters:
diversifier
- The diversifier to be used (from 1 to 8 bytes long).- Returns:
- The current instance.
- Since:
- 1.2.0
-
isSignatureValid
boolean isSignatureValid()
Returns the result of the signature verification process by indicating if the signature is valid or not.- Returns:
- True if the signature is valid.
- Throws:
java.lang.IllegalStateException
- If the command has not yet been processed.- Since:
- 1.2.0
-
-