public class TSLValidator extends ATSLValidator
Class that represents a TSL Validator implementation for the ETSI TS 119612 2.1.1 specification.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
TSP_SERVICE_NAME_FOR_DIST_POINT| Constructor and Description |
|---|
TSLValidator()
Constructor method for the class TSLValidator.java.
|
TSLValidator(ITSLObject tslObject)
Constructor method for the class TSLValidator.java.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfTSPServiceStatusIsOK(java.lang.String serviceStatus)
Checks if the input service status URI defines an OK status.
|
boolean |
checkIfTSPServiceTypeIsCAPKC(java.lang.String tspServiceType)
Checks if the input TSP Service Type is CA PKC.
|
boolean |
checkIfTSPServiceTypeIsCAQC(java.lang.String tspServiceType)
Checks if the input TSP Service Type is CA QC.
|
boolean |
checkIfTSPServiceTypeIsCRLCompatible(ServiceHistoryInstance shi,
boolean isCertQualified)
Checks if the service type is a CRL compatible type.
|
boolean |
checkIfTSPServiceTypeIsOCSPCompatible(ServiceHistoryInstance shi,
boolean isCertQualified)
Checks if the service type is a OCSP compatible type.
|
validateCertificateWithTSLpublic TSLValidator()
public TSLValidator(ITSLObject tslObject)
tslObject - public boolean checkIfTSPServiceTypeIsCAQC(java.lang.String tspServiceType)
checkIfTSPServiceTypeIsCAQC in class ATSLValidatortspServiceType - TSP Service type URI to check.true if it represents a CA QC TSP Service, otherwise false.ATSLValidator.checkIfTSPServiceTypeIsCAQC(java.lang.String)public boolean checkIfTSPServiceStatusIsOK(java.lang.String serviceStatus)
checkIfTSPServiceStatusIsOK in class ATSLValidatorserviceStatus - Service Status URI string to check.true if represents an OK status, otherwise false.ATSLValidator.checkIfTSPServiceStatusIsOK(java.lang.String)public boolean checkIfTSPServiceTypeIsCAPKC(java.lang.String tspServiceType)
checkIfTSPServiceTypeIsCAPKC in class ATSLValidatortspServiceType - TSP Service type URI to check.true if it represents a CA PKC TSP Service, otherwise false.ATSLValidator.checkIfTSPServiceTypeIsCAPKC(java.lang.String)public boolean checkIfTSPServiceTypeIsCRLCompatible(ServiceHistoryInstance shi, boolean isCertQualified)
checkIfTSPServiceTypeIsCRLCompatible in class ATSLValidatorshi - TSP Service History Information to analyze.isCertQualified - Flag that indicates if the certificate is qualified (true) or not (false).true if the Service type is CRL compatible with the certificate to validate. otherwise false.ATSLValidator.checkIfTSPServiceTypeIsCRLCompatible(es.gob.afirma.tsl.parsing.impl.common.ServiceHistoryInstance, boolean)public boolean checkIfTSPServiceTypeIsOCSPCompatible(ServiceHistoryInstance shi, boolean isCertQualified)
checkIfTSPServiceTypeIsOCSPCompatible in class ATSLValidatorshi - TSP Service History Information to analyze.isCertQualified - Flag that indicates if the certificate is qualified (true) or not (false).true if the Service type is OCSP compatible with the certificate to validate. otherwise false.ATSLValidator.checkIfTSPServiceTypeIsOCSPCompatible(es.gob.afirma.tsl.parsing.impl.common.ServiceHistoryInstance, boolean)