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
This method verifies of the given OID is a QcCompliance statement- Parameters:
oid-Stringto check- Returns:
- TRUE if QcCompliance, FALSE otherwise
-
isQcLimitValue
This method verifies of the given OID is a QcLimitValue statement- Parameters:
oid-Stringto check- Returns:
- TRUE if QcLimitValue, FALSE otherwise
-
isQcRetentionPeriod
This method verifies of the given OID is a QcRetentionPeriod statement- Parameters:
oid-Stringto check- Returns:
- TRUE if QcRetentionPeriod, FALSE otherwise
-
isQcSSCD
This method verifies of the given OID is a QcSSCD statement- Parameters:
oid-Stringto check- Returns:
- TRUE if QcSSCD, FALSE otherwise
-
isQcPds
This method verifies of the given OID is a QcPds statement- Parameters:
oid-Stringto check- Returns:
- TRUE if QcPds, FALSE otherwise
-
isQcType
This method verifies of the given OID is a QcType statement- Parameters:
oid-Stringto check- Returns:
- TRUE if QcType, FALSE otherwise
-
isQcCClegislation
This method verifies of the given OID is a QcCClegislation statement- Parameters:
oid-Stringto check- Returns:
- TRUE if QcCClegislation, FALSE otherwise
-
isQcSemanticsIdentifier
This method verifies of the given OID is a QcSemanticsIdentifier statement- Parameters:
oid-Stringto check- Returns:
- TRUE if QcSemanticsIdentifier, FALSE otherwise
-
isPsd2QcType
This method verifies of the given OID is a Psd2QcType statement- Parameters:
oid-Stringto check- Returns:
- TRUE if Psd2QcType, FALSE otherwise
-
getQcTypes
This method returns a list ofQCTypes from a list of given QcType OIDs -
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
-