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