• Camera Scanning
  • ID Parsing
  • DIVE
  • Web Services
  • Third Party Checks
  • Authentication
IDScan.net
  • ID Parsing SDK
  • Android and Java SDK
  • Check License Number Format Feature
Search Results for

    Show / Hide Table of Contents
    • ID Parsing SDK
      • iOS SDK V1
        • iOS SDK V2
      • Android and Java SDK
        • Properties, Methods, and Events
        • Check License Number Format Feature
      • .NET Library
        • Xamarin Example
        • Nuget Package Installation
    • Downloads

    Check License Number Format

    Description

    The SDK allows the user to pass in the parameters of:

    • The Issued Juridiction's 2 letter abbreviation
    • License Number
    • Country Code

    to check for general formatting of the license number.

    Note

    This feature requires enabling in the license given from IDScan.net

    Example Implementation

    import java.nio.file.Path;
    import java.nio.file.Paths;
    
    import net.idscan.parsers.DLParser;
    import net.idscan.parsers.interfaces.CheckLicenseNumberFormatResult;
    
    public class Main {
    
        public static void main(String[] args) {
    
            var licPath = System.getProperty("user.dir");
            Path licenseFile = Paths.get(licPath + "/license.json");
    
            // Initialize instance of Parser
        	var parser = new DLParser(licenseFile);
    
            String IssuedBy = "OH";
            String LicenseNumber = "A1234567";
            String CountryCode = "USA";
    
            var licenseCheckResult = parser.CheckLicenseNumberFormat(IssuedBy, LicenseNumber, CountryCode);
    
            System.out.println(" ====  License Number Format Check  ====");
            System.out.println("Status: "+licenseCheckResult.Status);
            System.out.println("IsValid: "+licenseCheckResult.IsValid);
            System.out.println("Code: " +licenseCheckResult.Code);
            System.out.println("Message: " + licenseCheckResult.Message);
        }
    }
    
    In This Article
    • Description
    • Example Implementation
    Back to top IDScan.net IDScan.net GitHub