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 QcStatements
getQcStatements
(CertificateToken certToken) Extracts the QCStatements from a certificate tokenstatic QcStatements
getQcStatements
(org.bouncycastle.asn1.ASN1Sequence qcStatementsSeq) Extracts the QCStatements from a qcStatementsSeq.getQcTypes
(List<String> oids) This method returns a list ofQCType
s from a list of given QcType OIDsstatic boolean
isPsd2QcType
(String oid) This method verifies of the given OID is a Psd2QcType statementstatic boolean
isQcCClegislation
(String oid) This method verifies of the given OID is a QcCClegislation statementstatic boolean
isQcCompliance
(String oid) This method verifies of the given OID is a QcCompliance statementstatic boolean
isQcLegislationPresent
(QcStatements qcStatements, String qcLegislation) This method verifies whether a QCLegislation code is present within providedQcStatements
static boolean
isQcLimitValue
(String oid) This method verifies of the given OID is a QcLimitValue statementstatic boolean
This method verifies of the given OID is a QcPds statementstatic boolean
This method verifies of the given OID is a QcRetentionPeriod statementstatic boolean
This method verifies of the given OID is a QcSemanticsIdentifier statementstatic boolean
This method verifies of the given OID is a QcSSCD statementstatic boolean
isQcStatementPresent
(QcStatements qcStatements, String qcStatementOid) This method verifies whether the givenqcStatementOid
is present within theQcStatements
static boolean
This method verifies of the given OID is a QcType statementstatic boolean
isQcTypePresent
(QcStatements qcStatements, String qcTypeOid) This method verifies whether a QCType with a givenqcTypeOid
is 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 givenqcStatementOid
is present within theQcStatements
- Parameters:
qcStatements
-QcStatements
to be verifiedqcStatementOid
-String
representing 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 givenqcTypeOid
is present within providedQcStatements
- Parameters:
qcStatements
-QcStatements
to check QCTypes fromqcTypeOid
-String
representing 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
-QcStatements
to check QCLegislation fromqcLegislation
-String
representing a QCLegislation country code to be verified- Returns:
- TRUE of the QCLegislation is present, FALSE otherwise
-