class LuhnIdentifierValidator extends BaseHyphenatedIdentifierValidator {

	@Override
	public String getValidIdentifier(String undecoratedIdentifier) throws UnallowedIdentifierException {
		
		checkAllowedIdentifier(undecoratedIdentifier);
		
		int checkDigit = getCheckDigit(undecoratedIdentifier);

		return undecoratedIdentifier + "-" + checkDigit;
	}

}