Class JavaVerifier

java.lang.Object
com.saxonica.config.Verifier
com.saxonica.config.JavaVerifier

public class JavaVerifier extends Verifier
  • Constructor Details

    • JavaVerifier

      public JavaVerifier()
  • Method Details

    • loadLicense

      protected void loadLicense(Configuration config)
      Locate the license file, read it, and verify it
      Specified by:
      loadLicense in class Verifier
      Parameters:
      config - the Saxon configuration
      Throws:
      LicenseException - if, for example, a license is found and is invalid
    • verify

      protected boolean verify(String data, String signature) throws LicenseException
      This method validates license data based on the signature and the public key.
      Specified by:
      verify in class Verifier
      Parameters:
      data - the license data to be verified
      signature - the digital signature, in X509 format (ASN.1 DER encoding)
      Returns:
      a boolean indicating whether the license is valid.
      Throws:
      LicenseException - if a failure occurs in the verification process
    • verify2

      protected boolean verify2(String data, String signature) throws LicenseException
      This method validates license data based on the signature and the public key.
      Specified by:
      verify2 in class Verifier
      Parameters:
      data - the license data to be verified
      signature - the digital signature, in X509 format (ASN.1 DER encoding)
      Returns:
      a boolean indicating whether or not the license is valid.
      Throws:
      LicenseException - if a failure occurs in the verification process