Package com.saxonica.config
Class JavaVerifier
- java.lang.Object
-
- com.saxonica.config.Verifier
-
- com.saxonica.config.JavaVerifier
-
public class JavaVerifier extends Verifier
-
-
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 Constructor Description JavaVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadLicense(Configuration config)
Locate the license file, read it, and verify itprotected boolean
verify(java.lang.String data, java.lang.String signature)
This method validates license data based on the signature and the public key.-
Methods inherited from class com.saxonica.config.Verifier
connectToURI, convertHexToBinary, getFeature, getPrimaryLicense, main, readLicenseFile, setPrimaryLicense
-
-
-
-
Method Detail
-
loadLicense
protected void loadLicense(Configuration config)
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
protected boolean verify(java.lang.String data, java.lang.String signature) throws LicenseException
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 or not the license is valid.
- Throws:
LicenseException
- if a failure occurs in the verification process
-
-