Class TidDECheckDigit

All Implemented Interfaces:
Serializable, CheckDigit, IsoIecConstants

public final class TidDECheckDigit extends IsoIecHybrid1110System
German Steuer-Identifikationsnummer (TIN – in short: IdNr.) is available since 2008, has a length of 11 digits and it applies to individual persons.

See Prüfung der Steuer- und Steueridentifikationsnummer (de) for more details.

Since:
1.10.0
See Also:
  • Method Details

    • getInstance

      public static CheckDigit getInstance()
      Gets the singleton instance of this validator.
      Returns:
      A singleton instance of the class.
    • calculateModulus

      protected int calculateModulus(String code, boolean includesCheckDigit) throws CheckDigitException
      Calculate the modulus for a code.

      Override to count ciphers to and check the criteria:

      • The first 10 digits of the identification number must contain exactly one duplicate or triplicate digit.
      • Are there three identical digits in positions 1 to 10, these identical digits must never be directly next to each other.
      Overrides:
      calculateModulus in class IsoIec7064HybridSystem
      Parameters:
      code - The code to calculate the modulus for.
      includesCheckDigit - Whether the code includes the Check Digit or not.
      Returns:
      The modulus value
      Throws:
      CheckDigitException - if an error occurs calculating the modulus for the specified code