Package com.saxonica.config
Class JavaVerifier
java.lang.Object
com.saxonica.config.Verifier
com.saxonica.config.JavaVerifier
-
Nested Class Summary
Nested classes/interfaces inherited from class com.saxonica.config.Verifier
Verifier.License
-
Field Summary
Fields inherited from class com.saxonica.config.Verifier
LICENSE_FILE_NAME, status
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
loadLicense
(Configuration config) Locate the license file, read it, and verify itprotected boolean
This method validates license data based on the signature and the public key.protected boolean
This method validates license data based on the signature and the public key.Methods inherited from class com.saxonica.config.Verifier
connectToURI, convertHexToBinary, getFeature, getLicenseFeatures, getPrimaryLicense, main, readLicenseFile, setPrimaryLicense
-
Constructor Details
-
JavaVerifier
public JavaVerifier()
-
-
Method Details
-
loadLicense
Locate the license file, read it, and verify it- Specified by:
loadLicense
in classVerifier
- Parameters:
config
- the Saxon configuration- Throws:
LicenseException
- if, for example, a license is found and is invalid
-
verify
This method validates license data based on the signature and the public key.- Specified by:
verify
in classVerifier
- Parameters:
data
- the license data to be verifiedsignature
- 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
This method validates license data based on the signature and the public key.- Specified by:
verify2
in classVerifier
- Parameters:
data
- the license data to be verifiedsignature
- 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
-