class AisChecksumCalculatingServiceV3 implements ChecksumCalculatingService {

    @Override
    public byte[] calculateChecksumForConsent(Consent<?> consent) {
        if (consent == null) {
            return new byte[0];
        }

        if (ConsentType.AIS == consent.getConsentType()) {

            AisConsent aisConsent = (AisConsent) consent;

            return calculateChecksumForAisConsent(aisConsent);
        }

        return new byte[0];
    }

}