public interface ITSLValidatorResult
Interface that represents a validation result using TSL. .
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Field and Description |
|---|---|
static int |
MAPPING_CLASSIFICATION_ESEAL
Constant attribute that represents the value for a mapping certificate classification ESEAL.
|
static int |
MAPPING_CLASSIFICATION_ESIG
Constant attribute that represents the value for a mapping certificate classification ESIG.
|
static int |
MAPPING_CLASSIFICATION_LEGALPERSON
Constant attribute that represents the value for a mapping certificate classification legal person.
|
static int |
MAPPING_CLASSIFICATION_NATURAL_PERSON
Constant attribute that represents the value for a mapping certificate classification natural person.
|
static int |
MAPPING_CLASSIFICATION_OTHER_UNKNOWN
Constant attribute that represents the value for a mapping certificate classification other/unknown.
|
static int |
MAPPING_CLASSIFICATION_TSA
Constant attribute that represents the value for a mapping certificate classification TSA.
|
static int |
MAPPING_CLASSIFICATION_WSA
Constant attribute that represents the value for a mapping certificate classification WSA.
|
static int |
MAPPING_QSCD_ASINCERT
Constant attribute that represents the value for a mapping certificate QSCD specified in the attributes.
|
static int |
MAPPING_QSCD_NO
Constant attribute that represents the value for a mapping certificate no QSCD.
|
static int |
MAPPING_QSCD_UNKNOWN
Constant attribute that represents the value for a mapping certificate QSCD unknown.
|
static int |
MAPPING_QSCD_YES
Constant attribute that represents the value for a mapping certificate QSCD.
|
static int |
MAPPING_QSCD_YES_MANAGEDONBEHALF
Constant attribute that represents the value for a mapping certificate QSCD managed by TSP.
|
static int |
MAPPING_TYPE_NONQUALIFIED
Constant attribute that represents the value for a mapping certificate type non qualified.
|
static int |
MAPPING_TYPE_QUALIFIED
Constant attribute that represents the value for a mapping certificate type qualified.
|
static int |
MAPPING_TYPE_UNKNOWN
Constant attribute that represents the value for a mapping certificate type unknown.
|
static int |
RESULT_DETECTED_STATE_CERTCHAIN_NOTVALID
Constant attribute that represents a validation result:
The certificate has been detected by the TSL and its certificate chain is not valid (expired).
|
static int |
RESULT_DETECTED_STATE_CERTCHAIN_NOTVALID_SERVICESTATUS
Constant attribute that represents a validation result:
The certificate has been detected by the TSL and the service status is not valid.
|
static int |
RESULT_DETECTED_STATE_REVOKED
Constant attribute that represents a validation result:
The certificate has been detected by the TSL and its state is revoked.
|
static int |
RESULT_DETECTED_STATE_REVOKED_SERVICESTATUS
Constant attribute that represents a validation result:
The certificate has been detected by the TSL and the service status is revoked.
|
static int |
RESULT_DETECTED_STATE_UNKNOWN
Constant attribute that represents a validation result:
The certificate has been detected by the TSL, but its state is unknown.
|
static int |
RESULT_DETECTED_STATE_VALID
Constant attribute that represents a validation result:
The certificate has been detected by the TSL and its state is valid.
|
static int |
RESULT_NOT_DETECTED
Constant attribute that represents a validation result:
The certificate has not been detected with the TSL.
|
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate |
getIssuerCert()
Gets the X509 Certificate of the issuer of the certificate to validate (if this has been found).
|
int |
getMappingClassification()
Gets the mapping classification of the validated certificate.
|
int |
getMappingQSCD()
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.
|
int |
getMappingType()
Gets the mapping type of the validated certificate.
|
int |
getResult()
Gets the validation result.
|
java.util.Date |
getRevocationDate()
Gets the revocation date of the certificate validate (if it is revoked).
|
int |
getRevocationReason()
Gets the Revocation Reason for the certificate that has been validated.
|
org.bouncycastle.cert.ocsp.BasicOCSPResp |
getRevocationValueBasicOCSPResp()
Gets the Basic OCSP Response selected how revocation value.
|
java.security.cert.X509CRL |
getRevocationValueCRL()
Gets the CRL selected how revocation value.
|
java.lang.String |
getRevocationValueURL()
Gets the URL from which the revocation value has been obtained.
|
TSLCertificateExtensionAnalyzer |
getTslCertificateExtensionAnalyzer()
Gets the extension analyzer for the certificate to validate.
|
java.lang.String |
getTslCountryRegionCode()
Gets the TSL Country/Region Code.
|
java.lang.String |
getTslEtsiSpecificationAndVersion()
Gets the TSL ETSI TS Specification and Version.
|
java.util.Date |
getTslIssueDate()
Gets the TSL Issue Date.
|
java.util.Date |
getTslNextUpdate()
Gets the TSL Next Update Date.
|
int |
getTslSequenceNumber()
Gets the TSL Sequence Number.
|
TrustServiceProvider |
getTSP()
Gets the TSP which has detected the certificate.
|
java.lang.String |
getTSPName()
Gets the name of the TSP which has detected the certificate.
|
TSPService |
getTSPServiceForDetect()
Gets the TSP Service which has detected the certificate.
|
TSPService |
getTSPServiceForValidate()
Gets the TSP Service which has validate the certificate.
|
ServiceHistoryInstance |
getTSPServiceHistoryInformationInstanceForDetect()
Gets the TSP Service History-Information which has detected the certificate.
|
ServiceHistoryInstance |
getTSPServiceHistoryInformationInstanceForValidate()
Gets the TSP Service History-Information which has validate the certificate.
|
java.lang.String |
getTSPServiceHistoryInformationInstanceNameForDetect()
Gets the name of the TSP Service History-Information which has detected the certificate.
|
java.lang.String |
getTSPServiceHistoryInformationInstanceNameForValidate()
Gets the name of the TSP Service History-Information which has validate the certificate.
|
java.lang.String |
getTSPServiceNameForDetect()
Gets the name of the TSP Service which has detected the certificate.
|
java.lang.String |
getTSPServiceNameForValidate()
Gets the name of the TSP Service which has validate the certificate.
|
boolean |
hasBeenDetectedTheCertificate()
Checks if the result is different of
RESULT_NOT_DETECTED. |
boolean |
hasBeenDetectedTheCertificateWithUnknownState()
Checks if the result is equal to
RESULT_DETECTED_STATE_UNKNOWN. |
boolean |
isEuropean()
Check if the TSL used is from an European member.
|
java.lang.Boolean |
isResultFromDPorAIA()
Checks if the validation result value is obtained from a DP or AIA.
|
java.lang.Boolean |
isResultFromServiceStatus()
Checks if the validation result value is obtained from a TSL-Service status.
|
void |
setMappings(java.util.Map<java.lang.String,java.lang.String> mappings)
Sets the mappings calculated for the validated certificate.
|
void |
setRevocationValueBasicOCSPResp(org.bouncycastle.cert.ocsp.BasicOCSPResp bor)
Sets the selected revocation value of type Basic OCSP Response.
|
void |
setRevocationValueCRL(java.security.cert.X509CRL crl)
Sets the selected revocation value of type CRL.
|
void |
setRevocationValueURL(java.lang.String revValueUrl)
Sets the URL from which the revocation value has been obtained.
|
static final int RESULT_NOT_DETECTED
static final int RESULT_DETECTED_STATE_UNKNOWN
static final int RESULT_DETECTED_STATE_VALID
static final int RESULT_DETECTED_STATE_REVOKED
static final int RESULT_DETECTED_STATE_CERTCHAIN_NOTVALID
static final int RESULT_DETECTED_STATE_REVOKED_SERVICESTATUS
static final int RESULT_DETECTED_STATE_CERTCHAIN_NOTVALID_SERVICESTATUS
static final int MAPPING_TYPE_UNKNOWN
static final int MAPPING_TYPE_NONQUALIFIED
static final int MAPPING_TYPE_QUALIFIED
static final int MAPPING_CLASSIFICATION_OTHER_UNKNOWN
static final int MAPPING_CLASSIFICATION_NATURAL_PERSON
static final int MAPPING_CLASSIFICATION_LEGALPERSON
static final int MAPPING_CLASSIFICATION_ESEAL
static final int MAPPING_CLASSIFICATION_ESIG
static final int MAPPING_CLASSIFICATION_WSA
static final int MAPPING_CLASSIFICATION_TSA
static final int MAPPING_QSCD_UNKNOWN
static final int MAPPING_QSCD_NO
static final int MAPPING_QSCD_YES
static final int MAPPING_QSCD_ASINCERT
static final int MAPPING_QSCD_YES_MANAGEDONBEHALF
java.lang.String getTslCountryRegionCode()
int getTslSequenceNumber()
java.lang.String getTslEtsiSpecificationAndVersion()
java.util.Date getTslIssueDate()
java.util.Date getTslNextUpdate()
TSLCertificateExtensionAnalyzer getTslCertificateExtensionAnalyzer()
int getResult()
java.lang.Boolean isResultFromServiceStatus()
null if the certificate has not been detected or its status is unknown. true
if the status has been determined by a TSL-Service status, otherwise false.java.lang.Boolean isResultFromDPorAIA()
null if the certificate has not been detected or its status is unknown. true
if the status has been determined by a DP or AIA, otherwise false.boolean hasBeenDetectedTheCertificate()
RESULT_NOT_DETECTED.true if the result is different of RESULT_NOT_DETECTED,
otherwise false.boolean hasBeenDetectedTheCertificateWithUnknownState()
RESULT_DETECTED_STATE_UNKNOWN.true if the result is equal to RESULT_DETECTED_STATE_UNKNOWN,
otherwise false.boolean isEuropean()
true if the TSL is from an European member, otherwise false.java.lang.String getTSPName()
null if
the certificate has not been detected.TrustServiceProvider getTSP()
null if
the certificate has not been detected.java.lang.String getTSPServiceNameForDetect()
null if
the certificate has not been detected.TSPService getTSPServiceForDetect()
null if
the certificate has not been detected.java.lang.String getTSPServiceHistoryInformationInstanceNameForDetect()
null if the certificate has not been detected.ServiceHistoryInstance getTSPServiceHistoryInformationInstanceForDetect()
null if the certificate has not been detected.java.lang.String getTSPServiceNameForValidate()
null if
the certificate has not been validated.TSPService getTSPServiceForValidate()
null if
the certificate has not been validated.java.lang.String getTSPServiceHistoryInformationInstanceNameForValidate()
null if the certificate has not been validated.ServiceHistoryInstance getTSPServiceHistoryInformationInstanceForValidate()
null if the certificate has not been validated.int getMappingType()
int getMappingClassification()
MAPPING_CLASSIFICATION_OTHER_UNKNOWNITSLValidatorResult#MAPPING_CLASSIFICATION_PERSONMAPPING_CLASSIFICATION_LEGALPERSONMAPPING_CLASSIFICATION_ESEALMAPPING_CLASSIFICATION_ESIGMAPPING_CLASSIFICATION_WSAMAPPING_CLASSIFICATION_TSAint getMappingQSCD()
java.util.Map<java.lang.String,java.lang.String> getMappings()
void setMappings(java.util.Map<java.lang.String,java.lang.String> mappings)
mappings - Map with the pairs java.security.cert.X509Certificate getIssuerCert()
null.org.bouncycastle.cert.ocsp.BasicOCSPResp getRevocationValueBasicOCSPResp()
null if there is not.void setRevocationValueBasicOCSPResp(org.bouncycastle.cert.ocsp.BasicOCSPResp bor)
bor - Basic OCSP Response to assign how the selected revocation value.java.security.cert.X509CRL getRevocationValueCRL()
null if there is not.void setRevocationValueCRL(java.security.cert.X509CRL crl)
crl - CRL to assign how the selected revocation value.java.lang.String getRevocationValueURL()
void setRevocationValueURL(java.lang.String revValueUrl)
revValueUrl - the URL from which the revocation value has been obtained.java.util.Date getRevocationDate()
null.int getRevocationReason()