class AisChecksumCalculatingServiceV3 implements ChecksumCalculatingService {

    @Override
    public boolean verifyConsentWithChecksum(Consent<?> consent, byte[] checksum) {
        if (consent == null || checksum == null) {
            return false;
        }

        if (ConsentType.AIS == consent.getConsentType()) {
            AisConsent aisConsent = (AisConsent) consent;

            return verifyConsentWithChecksumForAisConsent(aisConsent, checksum);
        }

        return false;
    }

}