public class TSLCertificateExtensionAnalyzer
extends java.lang.Object
Utilities wrapper for analyze the extensions defined in a specific X509v3 certificate.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Constructor and Description |
|---|
TSLCertificateExtensionAnalyzer(java.security.cert.X509Certificate cert)
Constructor method for the class TSLCertificateExtensionAnalyzer.java.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.Certificate |
getCertificate()
Gets the certificate associated to this analyzer.
|
java.util.List<java.lang.String> |
getPolicyInformationsOids()
Gets the value of the attribute
policyInformationsOids. |
java.util.List<java.lang.String> |
getQcStatementExtEuTypeOids()
Gets the value of the attribute
qcStatementExtEuTypeOids. |
java.util.List<java.lang.String> |
getQcStatementsOids()
Gets the value of the attribute
qcStatementsOids. |
boolean |
hasCertPolPolInfExtensionOid(java.lang.String certPolPolInfOid)
Checks if the certificate has the Certification Policies - Policy Information Extension OID.
|
boolean |
hasQcStatementEuTypeExtensionOid(java.lang.String qcStatementEuTypeOid)
Checks if the certificate has the input QcStatement EuType Extension OID.
|
boolean |
hasQcStatementExtensionOid(java.lang.String qcStatementOid)
Checks if the certificate has the input QcStatement Extension OID.
|
boolean |
hasSomeCertPolPolInfExtensionOid(java.util.List<java.lang.String> certPolPolInfOidsList)
Checks if the certificate has some of the input Certification Policies - Policy Information Extension OIDs.
|
boolean |
hasSomeQcStatementExtensionOid(java.util.List<java.lang.String> qcStatementOidsList)
Checks if the certificate has the input QcStatement Extension OID.
|
boolean |
isThereSomeCertPolPolInfExtension()
Checks if the certificate has some Certification Policies - Policy Information extension.
|
boolean |
isThereSomeQcStatementEuTypeExtension()
Checks if the certificate has the QcStatement EuType extension.
|
boolean |
isThereSomeQcStatementExtension()
Checks if the certificate has some QcStatement extension.
|
public TSLCertificateExtensionAnalyzer(java.security.cert.X509Certificate cert)
throws TSLCertificateValidationException
cert - X509v3 certificate to analyze.TSLCertificateValidationException - If the input certificate is null, or there is
some error extracting its information.public final org.bouncycastle.asn1.x509.Certificate getCertificate()
public final java.util.List<java.lang.String> getQcStatementsOids()
qcStatementsOids.qcStatementsOids.public final boolean isThereSomeQcStatementExtension()
true if the certificate has some QcStatement extension,
otherwise false.public final boolean hasQcStatementExtensionOid(java.lang.String qcStatementOid)
qcStatementOid - QcStatement Extension OID in String representation.true if the certificate has the QcStatement Extension OID,
otherwise false.public final boolean hasSomeQcStatementExtensionOid(java.util.List<java.lang.String> qcStatementOidsList)
qcStatementOidsList - QcStatement Extension OIDs List to check.true if the certificate has some of the input QcStatement Extension OID,
otherwise false.public final java.util.List<java.lang.String> getQcStatementExtEuTypeOids()
qcStatementExtEuTypeOids.qcStatementExtEuTypeOids.public final boolean isThereSomeQcStatementEuTypeExtension()
true if the certificate has the QcStatement EuType extension,
otherwise false.public final boolean hasQcStatementEuTypeExtensionOid(java.lang.String qcStatementEuTypeOid)
qcStatementEuTypeOid - QcStatement EuType Extension OID in String representation.true if the certificate has the QcStatement EuType Extension OID,
otherwise false.public final java.util.List<java.lang.String> getPolicyInformationsOids()
policyInformationsOids.policyInformationsOids.public final boolean isThereSomeCertPolPolInfExtension()
true if the certificate has some Certification Policies - Policy
Information extension, otherwise false.public final boolean hasCertPolPolInfExtensionOid(java.lang.String certPolPolInfOid)
certPolPolInfOid - Certification Policies - Policy Information Extension OID in
String representation.true if the certificate has the Certification Policies - Policy
Information Extension OID, otherwise false.public final boolean hasSomeCertPolPolInfExtensionOid(java.util.List<java.lang.String> certPolPolInfOidsList)
certPolPolInfOidsList - Certification Policies - Policy Information Extension OIDs List to check.true if the certificate has some of the input Certification Policies - Policy
Information Extension OIDs, otherwise false.