Class TanVerifier


  • @Service
    public class TanVerifier
    extends Object
    The TanVerifier performs the verification of submission TANs.
    • Constructor Detail

      • TanVerifier

        public TanVerifier​(VerificationServerClient verificationServerClient)
        This class can be used to verify a TAN against a configured verification service.
        Parameters:
        verificationServerClient - The REST client to communicate with the verification server
    • Method Detail

      • verifyTan

        public boolean verifyTan​(String tanString)
        Verifies the specified TAN. Returns true if the specified TAN is valid, false otherwise.
        Parameters:
        tanString - Submission Authorization TAN
        Returns:
        true if the specified TAN is valid, false otherwise.
        Throws:
        org.springframework.web.client.RestClientException - if status code is neither 2xx nor 4xx