Package eu.europa.esig.dss.spi
Class QcStatementUtils
java.lang.Object
eu.europa.esig.dss.spi.QcStatementUtils
A utils class to retrieve qc-statement from a certificate token
-
Method Summary
Modifier and TypeMethodDescriptionstatic QcStatementsgetQcStatements(CertificateToken certToken) Extracts the QCStatements from a certificate tokenstatic QcStatementsgetQcStatements(org.bouncycastle.asn1.ASN1Sequence qcStatementsSeq) Extracts the QCStatements from a qcStatementsSeq.getQcTypes(List<String> oids) This method returns a list ofQCTypes from a list of given QcType OIDsstatic booleanisPsd2QcType(String oid) This method verifies of the given OID is a Psd2QcType statementstatic booleanisQcCClegislation(String oid) This method verifies of the given OID is a QcCClegislation statementstatic booleanisQcCompliance(String oid) This method verifies of the given OID is a QcCompliance statementstatic booleanisQcLegislationPresent(QcStatements qcStatements, String qcLegislation) This method verifies whether a QCLegislation code is present within providedQcStatementsstatic booleanisQcLimitValue(String oid) This method verifies of the given OID is a QcLimitValue statementstatic booleanThis method verifies of the given OID is a QcPds statementstatic booleanThis method verifies of the given OID is a QcRetentionPeriod statementstatic booleanThis method verifies of the given OID is a QcSemanticsIdentifier statementstatic booleanThis method verifies of the given OID is a QcSSCD statementstatic booleanisQcStatementPresent(QcStatements qcStatements, String qcStatementOid) This method verifies whether the givenqcStatementOidis present within theQcStatementsstatic booleanThis method verifies of the given OID is a QcType statementstatic booleanisQcTypePresent(QcStatements qcStatements, String qcTypeOid) This method verifies whether a QCType with a givenqcTypeOidis present within providedQcStatements
-
Method Details
-
getQcStatements
Extracts the QCStatements from a certificate token- Parameters:
certToken-CertificateToken- Returns:
QcStatements
-
getQcStatements
Extracts the QCStatements from a qcStatementsSeq. NOTE: does not check if the extension is critical. Use#getQcStatements(CertificateToken certToken)if you need to know whether the certificate extension is critical.- Parameters:
qcStatementsSeq-ASN1Sequence- Returns:
QcStatements
-
isQcCompliance
-
isQcLimitValue
-
isQcRetentionPeriod
-
isQcSSCD
-
isQcPds
-
isQcType
-
isQcCClegislation
-
isQcSemanticsIdentifier
-
isPsd2QcType
-
getQcTypes
-
isQcStatementPresent
This method verifies whether the givenqcStatementOidis present within theQcStatements- Parameters:
qcStatements-QcStatementsto be verifiedqcStatementOid-Stringrepresenting OID of a QCStatement to be checked- Returns:
- TRUE if a QCStatement with the given OID is present, FALSE otherwise
-
isQcTypePresent
This method verifies whether a QCType with a givenqcTypeOidis present within providedQcStatements- Parameters:
qcStatements-QcStatementsto check QCTypes fromqcTypeOid-Stringrepresenting a QCType OID to be verified- Returns:
- TRUE of the QCType with a given OID is present, FALSE otherwise
-
isQcLegislationPresent
This method verifies whether a QCLegislation code is present within providedQcStatements- Parameters:
qcStatements-QcStatementsto check QCLegislation fromqcLegislation-Stringrepresenting a QCLegislation country code to be verified- Returns:
- TRUE of the QCLegislation is present, FALSE otherwise
-