Class TSLValidatorResult
- java.lang.Object
-
- es.gob.afirma.tsl.certValidation.impl.common.TSLValidatorResult
-
- All Implemented Interfaces:
ITSLValidatorResult
public class TSLValidatorResult extends java.lang.Object implements ITSLValidatorResult
Class that represents a TSL validation result.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.2, 19/09/2022.
-
-
Field Summary
-
Fields inherited from interface es.gob.afirma.tsl.certValidation.ifaces.ITSLValidatorResult
MAPPING_CLASSIFICATION_ESEAL, MAPPING_CLASSIFICATION_ESIG, MAPPING_CLASSIFICATION_LEGALPERSON, MAPPING_CLASSIFICATION_NATURAL_PERSON, MAPPING_CLASSIFICATION_OTHER_UNKNOWN, MAPPING_CLASSIFICATION_TSA, MAPPING_CLASSIFICATION_WSA, MAPPING_QSCD_ASINCERT, MAPPING_QSCD_NO, MAPPING_QSCD_UNKNOWN, MAPPING_QSCD_YES, MAPPING_QSCD_YES_MANAGEDONBEHALF, MAPPING_TYPE_NONQUALIFIED, MAPPING_TYPE_QUALIFIED, MAPPING_TYPE_UNKNOWN, RESULT_DETECTED_STATE_CERTCHAIN_NOTVALID, RESULT_DETECTED_STATE_CERTCHAIN_NOTVALID_SERVICESTATUS, RESULT_DETECTED_STATE_REVOKED, RESULT_DETECTED_STATE_REVOKED_SERVICESTATUS, RESULT_DETECTED_STATE_UNKNOWN, RESULT_DETECTED_STATE_VALID, RESULT_NOT_DETECTED
-
-
Constructor Summary
Constructors Constructor Description TSLValidatorResult(java.security.cert.X509Certificate cert, ITSLObject tslObject)Constructor method for the class TSLValidatorResult.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearIssuerData()Removes all the stored data about the issuer of the certificate to validate.java.security.cert.X509CertificategetIssuerCert()Gets the X509 Certificate of the issuer of the certificate to validate (if this has been found).java.security.PublicKeygetIssuerPublicKey()Gets the value of the attributeissuerPublicKey.byte[]getIssuerSKIbytes()Gets the value of the attributeissuerSKIbytes.java.lang.StringgetIssuerSubjectName()Gets the value of the attributeissuerSubjectName.intgetMappingClassification()Gets the mapping classification of the validated certificate.intgetMappingQSCD()Gets the mapping QSCD of the validated certificate.java.util.Map<java.lang.String,java.lang.String>getMappings()Gets all the mappings information calculated for the validated certificate.intgetMappingType()Gets the mapping type of the validated certificate.intgetResult()Gets the validation result.java.util.DategetRevocationDate()Gets the revocation date of the certificate validate (if it is revoked).intgetRevocationReason()Gets the Revocation Reason for the certificate that has been validated.org.bouncycastle.cert.ocsp.BasicOCSPRespgetRevocationValueBasicOCSPResp()Gets the Basic OCSP Response selected how revocation value.java.security.cert.X509CRLgetRevocationValueCRL()Gets the CRL selected how revocation value.java.lang.StringgetRevocationValueURL()Gets the URL from which the revocation value has been obtained.TSLCertificateExtensionAnalyzergetTslCertificateExtensionAnalyzer()Gets the extension analyzer for the certificate to validate.java.lang.StringgetTslCountryRegionCode()Gets the TSL Country/Region Code.java.lang.StringgetTslEtsiSpecificationAndVersion()Gets the TSL ETSI TS Specification and Version.java.util.DategetTslIssueDate()Gets the TSL Issue Date.java.util.DategetTslNextUpdate()Gets the TSL Next Update Date.intgetTslSequenceNumber()Gets the TSL Sequence Number.TrustServiceProvidergetTSP()Gets the TSP which has detected the certificate.java.lang.StringgetTSPName()Gets the name of the TSP which has detected the certificate.TSPServicegetTSPServiceForDetect()Gets the TSP Service which has detected the certificate.TSPServicegetTSPServiceForValidate()Gets the value of the attributetspServiceForValidate.ServiceHistoryInstancegetTSPServiceHistoryInformationInstanceForDetect()Gets the TSP Service History-Information which has detected the certificate.ServiceHistoryInstancegetTSPServiceHistoryInformationInstanceForValidate()Gets the TSP Service History-Information which has validate the certificate.java.lang.StringgetTSPServiceHistoryInformationInstanceNameForDetect()Gets the name of the TSP Service History-Information which has detected the certificate.java.lang.StringgetTSPServiceHistoryInformationInstanceNameForValidate()Gets the name of the TSP Service History-Information which has validate the certificate.java.lang.StringgetTSPServiceNameForDetect()Gets the name of the TSP Service which has detected the certificate.java.lang.StringgetTSPServiceNameForValidate()Gets the name of the TSP Service which has validate the certificate.booleanhasBeenDetectedTheCertificate()Checks if the result is different ofITSLValidatorResult.RESULT_NOT_DETECTED.booleanhasBeenDetectedTheCertificateWithUnknownState()Checks if the result is equal toITSLValidatorResult.RESULT_DETECTED_STATE_UNKNOWN.booleanisEuropean()Check if the TSL used is from an European member.java.lang.BooleanisResultFromDPorAIA()Checks if the validation result value is obtained from a DP or AIA.java.lang.BooleanisResultFromServiceStatus()Checks if the validation result value is obtained from a TSL-Service status.voidresetAllData()Resets all the data except the certificate extension analyzer.voidsetEuropean(boolean isEuropeanParam)Sets the value of the attributeisEuropean.voidsetIssuerCert(java.security.cert.X509Certificate issuerCertParam)Sets the value of the attributeissuerCert.voidsetIssuerPublicKey(java.security.PublicKey issuerPublicKeyParam)Sets the value of the attributeissuerPublicKey.voidsetIssuerSKIbytes(byte[] issuerSKIbytesParam)Sets the value of the attributeissuerSKIbytes.voidsetIssuerSubjectName(java.lang.String issuerSubjectNameParam)Sets the value of the attributeissuerSubjectName.voidsetMappingClassification(int mappingClassificationParam)Sets the value of the attributemappingClassification.voidsetMappingQSCD(int mappingQSCDParam)Sets the value of the attributemappingQSCD.voidsetMappings(java.util.Map<java.lang.String,java.lang.String> mappings)Sets the mappings calculated for the validated certificate.voidsetMappingType(int mappingTypeParam)Sets the value of the attributemappingType.voidsetResult(int resultParam)Sets the value of the attributeresult.voidsetResultFromDPorAIA(java.lang.Boolean isResultFromDPorAIAParam)Sets the value of the attributeisResultFromDPorAIA.voidsetResultFromServiceStatus(java.lang.Boolean isResultFromServiceStatusParam)Sets the flag that determines if the result has been obtained from a TSL-Service status.voidsetRevocationDate(java.util.Date revocationDateParam)Sets the value of the attributerevocationDate.voidsetRevocationReason(int revocationReasonParam)Sets the value of the attributerevocationReason.voidsetRevocationValueBasicOCSPResp(org.bouncycastle.cert.ocsp.BasicOCSPResp bor)Sets the selected revocation value of type Basic OCSP Response.voidsetRevocationValueCRL(java.security.cert.X509CRL crl)Sets the selected revocation value of type CRL.voidsetRevocationValueURL(java.lang.String revValueUrlParam)Sets the URL from which the revocation value has been obtained.voidsetTSP(TrustServiceProvider tspParam)Sets the value of the attributetsp.voidsetTSPName(java.lang.String tspNameParam)Sets the value of the attributetspName.voidsetTSPServiceForDetect(TSPService tspServiceForDetectParam)Sets the value of the attributetspServiceForDetect.voidsetTSPServiceForValidate(TSPService tspServiceForValidateParam)Sets the value of the attributetspServiceForValidate.voidsetTSPServiceHistoryInformationInstanceForDetect(ServiceHistoryInstance tspServiceHistoryInformationInstanceForDetectParam)Sets the value of the attributetspServiceHistoryInformationInstanceForDetect.voidsetTspServiceHistoryInformationInstanceForValidate(ServiceHistoryInstance tspServiceHistoryInformationInstanceForValidateParam)Sets the value of the attributetspServiceHistoryInformationInstanceForValidate.voidsetTSPServiceHistoryInformationInstanceNameForDetect(java.lang.String tspServiceHistoryInformationInstanceNameForDetectParam)Sets the value of the attributetspServiceHistoryInformationInstanceNameForDetect.voidsetTspServiceHistoryInformationInstanceNameForValidate(java.lang.String tspServiceHistoryInformationInstanceNameForValidateParam)Sets the value of the attributetspServiceHistoryInformationInstanceNameForValidate.voidsetTSPServiceNameForDetect(java.lang.String tspServiceNameForDetectParam)Sets the value of the attributetspServiceNameForDetect.voidsetTSPServiceNameForValidate(java.lang.String tspServiceNameForValidateParam)Sets the value of the attributetspServiceNameForValidate.
-
-
-
Constructor Detail
-
TSLValidatorResult
public TSLValidatorResult(java.security.cert.X509Certificate cert, ITSLObject tslObject) throws TSLValidationExceptionConstructor method for the class TSLValidatorResult.java.- Parameters:
cert- X509v3 Certificate to validate.tslObject- Object representation of the TSL that is going to be used in the validation process.- Throws:
TSLValidationException- In case of some error parsing the extensions of the input certificate.
-
-
Method Detail
-
getTslCountryRegionCode
public java.lang.String getTslCountryRegionCode()
Gets the TSL Country/Region Code.- Specified by:
getTslCountryRegionCodein interfaceITSLValidatorResult- Returns:
- the TSL Country/Region Code.
- See Also:
ITSLValidatorResult.getTslCountryRegionCode()
-
getTslSequenceNumber
public int getTslSequenceNumber()
Gets the TSL Sequence Number.- Specified by:
getTslSequenceNumberin interfaceITSLValidatorResult- Returns:
- the value of the TSL Sequence Number.
- See Also:
ITSLValidatorResult.getTslSequenceNumber()
-
getTslEtsiSpecificationAndVersion
public java.lang.String getTslEtsiSpecificationAndVersion()
Gets the TSL ETSI TS Specification and Version.- Specified by:
getTslEtsiSpecificationAndVersionin interfaceITSLValidatorResult- Returns:
- the TSL ETSI TS Specification and Version.
- See Also:
ITSLValidatorResult.getTslEtsiSpecificationAndVersion()
-
getTslIssueDate
public java.util.Date getTslIssueDate()
Gets the TSL Issue Date.- Specified by:
getTslIssueDatein interfaceITSLValidatorResult- Returns:
- the TSL Issue Date.
- See Also:
ITSLValidatorResult.getTslIssueDate()
-
getTslNextUpdate
public java.util.Date getTslNextUpdate()
Gets the TSL Next Update Date.- Specified by:
getTslNextUpdatein interfaceITSLValidatorResult- Returns:
- the TSL Next Update Date.
- See Also:
ITSLValidatorResult.getTslNextUpdate()
-
getTslCertificateExtensionAnalyzer
public TSLCertificateExtensionAnalyzer getTslCertificateExtensionAnalyzer()
Gets the extension analyzer for the certificate to validate.- Specified by:
getTslCertificateExtensionAnalyzerin interfaceITSLValidatorResult- Returns:
- the extension analyzer for the certificate to validate.
- See Also:
ITSLValidatorResult.getTslCertificateExtensionAnalyzer()
-
getResult
public int getResult()
Gets the validation result. It only can be one of the following:
ITSLValidatorResult.RESULT_NOT_DETECTEDITSLValidatorResult.RESULT_DETECTED_STATE_UNKNOWNITSLValidatorResult.RESULT_DETECTED_STATE_VALIDITSLValidatorResult.RESULT_DETECTED_STATE_REVOKEDITSLValidatorResult.RESULT_DETECTED_STATE_CERTCHAIN_NOTVALIDITSLValidatorResult.RESULT_DETECTED_STATE_REVOKED_SERVICESTATUSITSLValidatorResult.RESULT_DETECTED_STATE_CERTCHAIN_NOTVALID_SERVICESTATUS
- Specified by:
getResultin interfaceITSLValidatorResult- Returns:
- int that represents the validation result.
- See Also:
ITSLValidatorResult.getResult()
-
setResult
public final void setResult(int resultParam)
Sets the value of the attributeresult.- Parameters:
resultParam- The value for the attributeresult.
-
isResultFromServiceStatus
public java.lang.Boolean isResultFromServiceStatus()
Checks if the validation result value is obtained from a TSL-Service status.- Specified by:
isResultFromServiceStatusin interfaceITSLValidatorResult- Returns:
nullif the certificate has not been detected or its status is unknown.trueif the status has been determined by a TSL-Service status, otherwisefalse.- See Also:
ITSLValidatorResult.isResultFromServiceStatus()
-
setResultFromServiceStatus
public void setResultFromServiceStatus(java.lang.Boolean isResultFromServiceStatusParam)
Sets the flag that determines if the result has been obtained from a TSL-Service status.- Parameters:
isResultFromServiceStatusParam- flag that determines if the result has been obtained from a TSL-Service status.
-
isResultFromDPorAIA
public final java.lang.Boolean isResultFromDPorAIA()
Checks if the validation result value is obtained from a DP or AIA.- Specified by:
isResultFromDPorAIAin interfaceITSLValidatorResult- Returns:
nullif the certificate has not been detected or its status is unknown.trueif the status has been determined by a DP or AIA, otherwisefalse.- See Also:
ITSLValidatorResult.isResultFromDPorAIA()
-
setResultFromDPorAIA
public final void setResultFromDPorAIA(java.lang.Boolean isResultFromDPorAIAParam)
Sets the value of the attributeisResultFromDPorAIA.- Parameters:
isResultFromDPorAIAParam- The value for the attributeisResultFromDPorAIA.
-
hasBeenDetectedTheCertificate
public boolean hasBeenDetectedTheCertificate()
Checks if the result is different ofITSLValidatorResult.RESULT_NOT_DETECTED.- Specified by:
hasBeenDetectedTheCertificatein interfaceITSLValidatorResult- Returns:
trueif the result is different ofITSLValidatorResult.RESULT_NOT_DETECTED, otherwisefalse.- See Also:
ITSLValidatorResult.hasBeenDetectedTheCertificate()
-
hasBeenDetectedTheCertificateWithUnknownState
public boolean hasBeenDetectedTheCertificateWithUnknownState()
Checks if the result is equal toITSLValidatorResult.RESULT_DETECTED_STATE_UNKNOWN.- Specified by:
hasBeenDetectedTheCertificateWithUnknownStatein interfaceITSLValidatorResult- Returns:
trueif the result is equal toITSLValidatorResult.RESULT_DETECTED_STATE_UNKNOWN, otherwisefalse.- See Also:
ITSLValidatorResult.hasBeenDetectedTheCertificateWithUnknownState()
-
isEuropean
public boolean isEuropean()
Check if the TSL used is from an European member.- Specified by:
isEuropeanin interfaceITSLValidatorResult- Returns:
trueif the TSL is from an European member, otherwisefalse.- See Also:
ITSLValidatorResult.isEuropean()
-
setEuropean
public final void setEuropean(boolean isEuropeanParam)
Sets the value of the attributeisEuropean.- Parameters:
isEuropeanParam- The value for the attributeisEuropean.
-
getTSPName
public java.lang.String getTSPName()
Gets the name of the TSP which has detected the certificate.- Specified by:
getTSPNamein interfaceITSLValidatorResult- Returns:
- the name of the TSP which has detected the certificate, or
nullif the certificate has not been detected. - See Also:
ITSLValidatorResult.getTSPName()
-
setTSPName
public final void setTSPName(java.lang.String tspNameParam)
Sets the value of the attributetspName.- Parameters:
tspNameParam- The value for the attributetspName.
-
getTSP
public final TrustServiceProvider getTSP()
Gets the TSP which has detected the certificate.- Specified by:
getTSPin interfaceITSLValidatorResult- Returns:
- TSP which has detected the certificate, or
nullif the certificate has not been detected. - See Also:
ITSLValidatorResult.getTSP()
-
setTSP
public final void setTSP(TrustServiceProvider tspParam)
Sets the value of the attributetsp.- Parameters:
tspParam- The value for the attributetsp.
-
getTSPServiceNameForDetect
public java.lang.String getTSPServiceNameForDetect()
Gets the name of the TSP Service which has detected the certificate.- Specified by:
getTSPServiceNameForDetectin interfaceITSLValidatorResult- Returns:
- the name of the TSP Service which has detected the certificate, or
nullif the certificate has not been detected. - See Also:
ITSLValidatorResult.getTSPServiceNameForDetect()
-
setTSPServiceNameForDetect
public final void setTSPServiceNameForDetect(java.lang.String tspServiceNameForDetectParam)
Sets the value of the attributetspServiceNameForDetect.- Parameters:
tspServiceNameForDetectParam- The value for the attributetspServiceNameForDetect.
-
getTSPServiceForDetect
public final TSPService getTSPServiceForDetect()
Gets the TSP Service which has detected the certificate.- Specified by:
getTSPServiceForDetectin interfaceITSLValidatorResult- Returns:
- TSP Service which has detected the certificate, or
nullif the certificate has not been detected. - See Also:
ITSLValidatorResult.getTSPServiceForDetect()
-
setTSPServiceForDetect
public final void setTSPServiceForDetect(TSPService tspServiceForDetectParam)
Sets the value of the attributetspServiceForDetect.- Parameters:
tspServiceForDetectParam- The value for the attributetspServiceForDetect.
-
getTSPServiceHistoryInformationInstanceNameForDetect
public java.lang.String getTSPServiceHistoryInformationInstanceNameForDetect()
Gets the name of the TSP Service History-Information which has detected the certificate.- Specified by:
getTSPServiceHistoryInformationInstanceNameForDetectin interfaceITSLValidatorResult- Returns:
- the name of the TSP Service History-Information which has detected the certificate,
or
nullif the certificate has not been detected. - See Also:
ITSLValidatorResult.getTSPServiceHistoryInformationInstanceNameForDetect()
-
setTSPServiceHistoryInformationInstanceNameForDetect
public final void setTSPServiceHistoryInformationInstanceNameForDetect(java.lang.String tspServiceHistoryInformationInstanceNameForDetectParam)
Sets the value of the attributetspServiceHistoryInformationInstanceNameForDetect.- Parameters:
tspServiceHistoryInformationInstanceNameForDetectParam- The value for the attributetspServiceHistoryInformationInstanceNameForDetect.
-
getTSPServiceHistoryInformationInstanceForDetect
public ServiceHistoryInstance getTSPServiceHistoryInformationInstanceForDetect()
Gets the TSP Service History-Information which has detected the certificate.- Specified by:
getTSPServiceHistoryInformationInstanceForDetectin interfaceITSLValidatorResult- Returns:
- TSP Service History-Information which has detected the certificate, or
nullif the certificate has not been detected. - See Also:
ITSLValidatorResult.getTSPServiceHistoryInformationInstanceForDetect()
-
setTSPServiceHistoryInformationInstanceForDetect
public final void setTSPServiceHistoryInformationInstanceForDetect(ServiceHistoryInstance tspServiceHistoryInformationInstanceForDetectParam)
Sets the value of the attributetspServiceHistoryInformationInstanceForDetect.- Parameters:
tspServiceHistoryInformationInstanceForDetectParam- The value for the attributetspServiceHistoryInformationInstanceForDetect.
-
getTSPServiceNameForValidate
public java.lang.String getTSPServiceNameForValidate()
Gets the name of the TSP Service which has validate the certificate.- Specified by:
getTSPServiceNameForValidatein interfaceITSLValidatorResult- Returns:
- the name of the TSP Service which has validate the certificate, or
nullif the certificate has not been validated. - See Also:
ITSLValidatorResult.getTSPServiceNameForValidate()
-
setTSPServiceNameForValidate
public final void setTSPServiceNameForValidate(java.lang.String tspServiceNameForValidateParam)
Sets the value of the attributetspServiceNameForValidate.- Parameters:
tspServiceNameForValidateParam- The value for the attributetspServiceNameForValidate.
-
getTSPServiceHistoryInformationInstanceNameForValidate
public java.lang.String getTSPServiceHistoryInformationInstanceNameForValidate()
Gets the name of the TSP Service History-Information which has validate the certificate.- Specified by:
getTSPServiceHistoryInformationInstanceNameForValidatein interfaceITSLValidatorResult- Returns:
- the name of the TSP Service History-Information which has validate the
certificate, or
nullif the certificate has not been validated. - See Also:
ITSLValidatorResult.getTSPServiceHistoryInformationInstanceNameForValidate()
-
setTspServiceHistoryInformationInstanceNameForValidate
public final void setTspServiceHistoryInformationInstanceNameForValidate(java.lang.String tspServiceHistoryInformationInstanceNameForValidateParam)
Sets the value of the attributetspServiceHistoryInformationInstanceNameForValidate.- Parameters:
tspServiceHistoryInformationInstanceNameForValidateParam- The value for the attributetspServiceHistoryInformationInstanceNameForValidate.
-
getTSPServiceHistoryInformationInstanceForValidate
public ServiceHistoryInstance getTSPServiceHistoryInformationInstanceForValidate()
Gets the TSP Service History-Information which has validate the certificate.- Specified by:
getTSPServiceHistoryInformationInstanceForValidatein interfaceITSLValidatorResult- Returns:
- the TSP Service History-Information which has validate the certificate,
or
nullif the certificate has not been validated. - See Also:
ITSLValidatorResult.getTSPServiceHistoryInformationInstanceForValidate()
-
setTspServiceHistoryInformationInstanceForValidate
public final void setTspServiceHistoryInformationInstanceForValidate(ServiceHistoryInstance tspServiceHistoryInformationInstanceForValidateParam)
Sets the value of the attributetspServiceHistoryInformationInstanceForValidate.- Parameters:
tspServiceHistoryInformationInstanceForValidateParam- The value for the attributetspServiceHistoryInformationInstanceForValidate.
-
getTSPServiceForValidate
public final TSPService getTSPServiceForValidate()
Gets the value of the attributetspServiceForValidate.- Specified by:
getTSPServiceForValidatein interfaceITSLValidatorResult- Returns:
- the value of the attribute
tspServiceForValidate.
-
setTSPServiceForValidate
public final void setTSPServiceForValidate(TSPService tspServiceForValidateParam)
Sets the value of the attributetspServiceForValidate.- Parameters:
tspServiceForValidateParam- The value for the attributetspServiceForValidate.
-
getMappingType
public int getMappingType()
Gets the mapping type of the validated certificate. It only can be one of the following:
- Specified by:
getMappingTypein interfaceITSLValidatorResult- Returns:
- the mapping type of the validated certificate.
- See Also:
ITSLValidatorResult.getMappingType()
-
setMappingType
public final void setMappingType(int mappingTypeParam)
Sets the value of the attributemappingType.- Parameters:
mappingTypeParam- The value for the attributemappingType.
-
getMappingClassification
public int getMappingClassification()
Gets the mapping classification of the validated certificate. It only can be one of the following:
ITSLValidatorResult.MAPPING_CLASSIFICATION_OTHER_UNKNOWNITSLValidatorResult.MAPPING_CLASSIFICATION_NATURAL_PERSONITSLValidatorResult.MAPPING_CLASSIFICATION_LEGALPERSONITSLValidatorResult.MAPPING_CLASSIFICATION_ESEALITSLValidatorResult.MAPPING_CLASSIFICATION_ESIGITSLValidatorResult.MAPPING_CLASSIFICATION_WSAITSLValidatorResult.MAPPING_CLASSIFICATION_TSA
- Specified by:
getMappingClassificationin interfaceITSLValidatorResult- Returns:
- the mapping classification of the validated certificate.
- See Also:
ITSLValidatorResult.getMappingClassification()
-
setMappingClassification
public final void setMappingClassification(int mappingClassificationParam)
Sets the value of the attributemappingClassification.- Parameters:
mappingClassificationParam- The value for the attributemappingClassification.
-
getMappingQSCD
public int getMappingQSCD()
Gets the mapping QSCD of the validated certificate. It only can be one of the following:
- Specified by:
getMappingQSCDin interfaceITSLValidatorResult- Returns:
- the mapping SSCD of the validated certificate.
- See Also:
ITSLValidatorResult.getMappingQSCD()
-
setMappingQSCD
public final void setMappingQSCD(int mappingQSCDParam)
Sets the value of the attributemappingQSCD.- Parameters:
mappingQSCDParam- The value for the attributemappingQSCD.
-
getMappings
public java.util.Map<java.lang.String,java.lang.String> getMappings()
Gets all the mappings information calculated for the validated certificate.- Specified by:
getMappingsin interfaceITSLValidatorResult- Returns:
- Map with the pairs <MappingName, MappingValue> calculated for the validated certificate.
- See Also:
ITSLValidatorResult.getMappings()
-
setMappings
public void setMappings(java.util.Map<java.lang.String,java.lang.String> mappings)
Sets the mappings calculated for the validated certificate.- Specified by:
setMappingsin interfaceITSLValidatorResult- Parameters:
mappings- Map with the pairs <MappingName, MappingValue> calculated for the validated certificate.- See Also:
ITSLValidatorResult.setMappings(java.util.Map)
-
getIssuerCert
public final java.security.cert.X509Certificate getIssuerCert()
Gets the X509 Certificate of the issuer of the certificate to validate (if this has been found).- Specified by:
getIssuerCertin interfaceITSLValidatorResult- Returns:
- the X509 Certificate of the issuer of the certificate to validate (if this has been found),
otherwise
null. - See Also:
ITSLValidatorResult.getIssuerCert()
-
setIssuerCert
public final void setIssuerCert(java.security.cert.X509Certificate issuerCertParam)
Sets the value of the attributeissuerCert.- Parameters:
issuerCertParam- The value for the attributeissuerCert.
-
getIssuerSubjectName
public final java.lang.String getIssuerSubjectName()
Gets the value of the attributeissuerSubjectName.- Returns:
- the value of the attribute
issuerSubjectName.
-
setIssuerSubjectName
public final void setIssuerSubjectName(java.lang.String issuerSubjectNameParam)
Sets the value of the attributeissuerSubjectName.- Parameters:
issuerSubjectNameParam- The value for the attributeissuerSubjectName.
-
getIssuerPublicKey
public final java.security.PublicKey getIssuerPublicKey()
Gets the value of the attributeissuerPublicKey.- Returns:
- the value of the attribute
issuerPublicKey.
-
setIssuerPublicKey
public final void setIssuerPublicKey(java.security.PublicKey issuerPublicKeyParam)
Sets the value of the attributeissuerPublicKey.- Parameters:
issuerPublicKeyParam- The value for the attributeissuerPublicKey.
-
getIssuerSKIbytes
public final byte[] getIssuerSKIbytes()
Gets the value of the attributeissuerSKIbytes.- Returns:
- the value of the attribute
issuerSKIbytes.
-
setIssuerSKIbytes
public final void setIssuerSKIbytes(byte[] issuerSKIbytesParam)
Sets the value of the attributeissuerSKIbytes.- Parameters:
issuerSKIbytesParam- The value for the attributeissuerSKIbytes.
-
clearIssuerData
public final void clearIssuerData()
Removes all the stored data about the issuer of the certificate to validate.
-
getRevocationValueBasicOCSPResp
public org.bouncycastle.cert.ocsp.BasicOCSPResp getRevocationValueBasicOCSPResp()
Gets the Basic OCSP Response selected how revocation value.- Specified by:
getRevocationValueBasicOCSPRespin interfaceITSLValidatorResult- Returns:
- Basic OCSP Response selected how revocation value,
nullif there is not. - See Also:
ITSLValidatorResult.getRevocationValueBasicOCSPResp()
-
setRevocationValueBasicOCSPResp
public void setRevocationValueBasicOCSPResp(org.bouncycastle.cert.ocsp.BasicOCSPResp bor)
Sets the selected revocation value of type Basic OCSP Response.- Specified by:
setRevocationValueBasicOCSPRespin interfaceITSLValidatorResult- Parameters:
bor- Basic OCSP Response to assign how the selected revocation value.- See Also:
ITSLValidatorResult.setRevocationValueBasicOCSPResp(BasicOCSPResp)
-
getRevocationValueCRL
public java.security.cert.X509CRL getRevocationValueCRL()
Gets the CRL selected how revocation value.- Specified by:
getRevocationValueCRLin interfaceITSLValidatorResult- Returns:
- CRL selected how revocation value,
nullif there is not. - See Also:
ITSLValidatorResult.getRevocationValueCRL()
-
setRevocationValueCRL
public void setRevocationValueCRL(java.security.cert.X509CRL crl)
Sets the selected revocation value of type CRL.- Specified by:
setRevocationValueCRLin interfaceITSLValidatorResult- Parameters:
crl- CRL to assign how the selected revocation value.- See Also:
ITSLValidatorResult.setRevocationValueCRL(java.security.cert.X509CRL)
-
getRevocationValueURL
public java.lang.String getRevocationValueURL()
Gets the URL from which the revocation value has been obtained.- Specified by:
getRevocationValueURLin interfaceITSLValidatorResult- Returns:
- the URL from which the revocation value has been obtained.
- See Also:
ITSLValidatorResult.getRevocationValueURL()
-
setRevocationValueURL
public void setRevocationValueURL(java.lang.String revValueUrlParam)
Sets the URL from which the revocation value has been obtained.- Specified by:
setRevocationValueURLin interfaceITSLValidatorResult- Parameters:
revValueUrlParam- the URL from which the revocation value has been obtained.- See Also:
ITSLValidatorResult.setRevocationValueURL(java.lang.String)
-
getRevocationDate
public java.util.Date getRevocationDate()
Gets the revocation date of the certificate validate (if it is revoked).- Specified by:
getRevocationDatein interfaceITSLValidatorResult- Returns:
- the revocation date of the certificate validate (if it is revoked), otherwise
null. - See Also:
ITSLValidatorResult.getRevocationDate()
-
setRevocationDate
public final void setRevocationDate(java.util.Date revocationDateParam)
Sets the value of the attributerevocationDate.- Parameters:
revocationDateParam- The value for the attributerevocationDate.
-
getRevocationReason
public int getRevocationReason()
Gets the Revocation Reason for the certificate that has been validated.- Specified by:
getRevocationReasonin interfaceITSLValidatorResult- Returns:
- Revocation Reason integer representation for the certificate validated, or -1 if was not possible to validate or the certificate is not revoked.
- See Also:
ITSLValidatorResult.getRevocationReason()
-
setRevocationReason
public final void setRevocationReason(int revocationReasonParam)
Sets the value of the attributerevocationReason.- Parameters:
revocationReasonParam- The value for the attributerevocationReason.
-
resetAllData
public final void resetAllData()
Resets all the data except the certificate extension analyzer.
-
-