Class TSLValidator
- java.lang.Object
-
- es.gob.afirma.tsl.certValidation.impl.common.ATSLValidator
-
- es.gob.afirma.tsl.certValidation.impl.ts119612.v020101.TSLValidator
-
- All Implemented Interfaces:
ITSLValidator
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@.
- Version:
- 1.5, 19/09/2022.
-
-
Field Summary
-
Fields inherited from class es.gob.afirma.tsl.certValidation.impl.common.ATSLValidator
TSP_SERVICE_NAME_FOR_DIST_POINT
-
-
Constructor Summary
Constructors Constructor Description TSLValidator()Constructor method for the class TSLValidator.java.TSLValidator(ITSLObject tslObject)Constructor method for the class TSLValidator.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckIfTSPServiceStatusIsOK(java.lang.String serviceStatus)Checks if the input service status URI defines an OK status.booleancheckIfTSPServiceTypeIsCAPKC(java.lang.String tspServiceType)Checks if the input TSP Service Type is CA PKC.booleancheckIfTSPServiceTypeIsCAQC(java.lang.String tspServiceType)Checks if the input TSP Service Type is CA QC.booleancheckIfTSPServiceTypeIsCRLCompatible(ServiceHistoryInstance shi, boolean isCertQualified)Checks if the service type is a CRL compatible type.booleancheckIfTSPServiceTypeIsOCSPCompatible(ServiceHistoryInstance shi, boolean isCertQualified)Checks if the service type is a OCSP compatible type.-
Methods inherited from class es.gob.afirma.tsl.certValidation.impl.common.ATSLValidator
getCertificateFromHTTPURI, validateCertificateWithTSL
-
-
-
-
Constructor Detail
-
TSLValidator
public TSLValidator()
Constructor method for the class TSLValidator.java.
-
TSLValidator
public TSLValidator(ITSLObject tslObject)
Constructor method for the class TSLValidator.java.- Parameters:
tslObject- Tsl.
-
-
Method Detail
-
checkIfTSPServiceTypeIsCAQC
public boolean checkIfTSPServiceTypeIsCAQC(java.lang.String tspServiceType)
Checks if the input TSP Service Type is CA QC.- Specified by:
checkIfTSPServiceTypeIsCAQCin classATSLValidator- Parameters:
tspServiceType- TSP Service type URI to check.- Returns:
trueif it represents a CA QC TSP Service, otherwisefalse.- See Also:
ATSLValidator.checkIfTSPServiceTypeIsCAQC(java.lang.String)
-
checkIfTSPServiceStatusIsOK
public boolean checkIfTSPServiceStatusIsOK(java.lang.String serviceStatus)
Checks if the input service status URI defines an OK status.- Specified by:
checkIfTSPServiceStatusIsOKin classATSLValidator- Parameters:
serviceStatus- Service Status URI string to check.- Returns:
trueif represents an OK status, otherwisefalse.- See Also:
ATSLValidator.checkIfTSPServiceStatusIsOK(java.lang.String)
-
checkIfTSPServiceTypeIsCAPKC
public boolean checkIfTSPServiceTypeIsCAPKC(java.lang.String tspServiceType)
Checks if the input TSP Service Type is CA PKC.- Specified by:
checkIfTSPServiceTypeIsCAPKCin classATSLValidator- Parameters:
tspServiceType- TSP Service type URI to check.- Returns:
trueif it represents a CA PKC TSP Service, otherwisefalse.- See Also:
ATSLValidator.checkIfTSPServiceTypeIsCAPKC(java.lang.String)
-
checkIfTSPServiceTypeIsCRLCompatible
public boolean checkIfTSPServiceTypeIsCRLCompatible(ServiceHistoryInstance shi, boolean isCertQualified)
Checks if the service type is a CRL compatible type. It will be compatible when the certificate was qualified, and this service was for qualified certificates, or the certificate is not qualified, and the service is for not qualified.- Specified by:
checkIfTSPServiceTypeIsCRLCompatiblein classATSLValidator- Parameters:
shi- TSP Service History Information to analyze.isCertQualified- Flag that indicates if the certificate is qualified (true) or not (false).- Returns:
trueif the Service type is CRL compatible with the certificate to validate. otherwisefalse.- See Also:
ATSLValidator.checkIfTSPServiceTypeIsCRLCompatible(es.gob.afirma.tsl.parsing.impl.common.ServiceHistoryInstance, boolean)
-
checkIfTSPServiceTypeIsOCSPCompatible
public boolean checkIfTSPServiceTypeIsOCSPCompatible(ServiceHistoryInstance shi, boolean isCertQualified)
Checks if the service type is a OCSP compatible type. It will be compatible when the certificate was qualified, and this service was for qualified certificates, or the certificate is not qualified, and the service is for not qualified.- Specified by:
checkIfTSPServiceTypeIsOCSPCompatiblein classATSLValidator- Parameters:
shi- TSP Service History Information to analyze.isCertQualified- Flag that indicates if the certificate is qualified (true) or not (false).- Returns:
trueif the Service type is OCSP compatible with the certificate to validate. otherwisefalse.- See Also:
ATSLValidator.checkIfTSPServiceTypeIsOCSPCompatible(es.gob.afirma.tsl.parsing.impl.common.ServiceHistoryInstance, boolean)
-
-