public class QcEuPDS extends QCStatementInfo
QcEuPDS
QCStatementInfo.
The QcEuPDS statement info is associated with a specific statement identifier, derived from:
id-etsi-qcs OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0) id-qc-profile(1862) 1 } id-etsi-qcs-QcPDS OBJECT IDENTIFIER ::= { id-etsi-qcs 5 }
which corresponds to the OID string "0.4.0.1862.1.5".
The ETSI Profiles for Trust Service Providers issuing certificates, Part 5, Extension
for Qualified Certificates profile (ETSI EN 319 412-5, formerly ETSI TS 101 862) specifies
the QcEuPDS statement info for specifying URLs to Policy Disclosure Statements that have
been issued in accordance with ETSI EN 319 411-2.
A PDS (Policy Disclosure Statement) consists of a set of clauses, each giving a statement of some
specific statement type (like CA contact info or Certificate type, validation procedures
and usage), optionally containing a link to the corresponding policy/cps sections.
The QcEuPDS
QCStatementInfo is defined as SEQUENCE OF PdsLocation elements, each
containing an url that points to a Policy Disclosure Statement (PDS) written in a specific
language which is identified by its ISO 639-1 language code, see ETSI EN 319 412-5:
QcEuPDS ::= PdsLocations PdsLocations ::= SEQUENCE SIZE (1..MAX) OF PdsLocation PdsLocation::= SEQUENCE { url IA5String, language PrintableString (SIZE(2))} -- ISO 639-1 language codeThe QcEuPDS PdsLocations must contain at least one PdsLocation element pointing to a PDS in English. Additional PdsLocation elements may be included to refer to the same PDS in other languages, but only one PdsLocation per language shall be included. At least one PdsLoaction element shall refer the PDS using the https scheme.
QCStatementInfo
,
QCStatement
,
QCStatements
Modifier and Type | Class and Description |
---|---|
static class |
QcEuPDS.PdsLocation
This calls implements the
PdsLocation type. |
Modifier and Type | Field and Description |
---|---|
static ObjectID |
statementID
The statement id of the QcEuPDS statement info.
|
Constructor and Description |
---|
QcEuPDS()
Default constructor.
|
QcEuPDS(ASN1Object obj)
Creates a QcEuPDS from its ASN.1 representation.
|
Modifier and Type | Method and Description |
---|---|
void |
addPdsLocation(QcEuPDS.PdsLocation pdsLocation)
Adds the given PDSLocation element.
|
void |
decode(ASN1Object obj)
Decodes a QcEuPDS from its ASN.1 representation.
|
QcEuPDS.PdsLocation[] |
getPdsLocations()
Gets all PDSLocation elements.
|
java.lang.String |
getPdsUrl(java.lang.String language)
Searches for a url pointing to a PDS written in the specified language.
|
ObjectID |
getStatementID()
Returns the statement ID identifying this
QcEuPDS
statement info. |
ASN1Object |
toASN1Object()
Returns an ASN1Object representing this
QcEuPDS
object. |
java.lang.String |
toString()
Returns a string that represents the contents of
this
QcEuPDS statement info. |
getName
public static final ObjectID statementID
public QcEuPDS()
QcEuPDS
object.
Use method addPdsLocation
to
add PDSLocation elements.
public QcEuPDS(ASN1Object obj) throws CodingException
obj
- the QcEuPDS as ASN1ObjectCodingException
- if the ASN1Object cannot be parsedpublic void addPdsLocation(QcEuPDS.PdsLocation pdsLocation)
pdsLocation
- the PdsLocation to be addedpublic QcEuPDS.PdsLocation[] getPdsLocations()
public java.lang.String getPdsUrl(java.lang.String language)
language
- the language codenull
if no pds url for the given language is includedpublic ObjectID getStatementID()
QcEuPDS
statement info.
The corresponding OID string is "0.4.0.1862.1.5".getStatementID
in class QCStatementInfo
QcEuPDS
statement infopublic void decode(ASN1Object obj) throws CodingException
The given ASN1Object represents a QcEuPDS statement info not including the statementID.
decode
in class QCStatementInfo
obj
- the QcEuPDS as ASN1ObjectCodingException
- if the object cannot be parsedpublic ASN1Object toASN1Object()
QcEuPDS
object.toASN1Object
in class QCStatementInfo
public java.lang.String toString()
QcEuPDS
statement info.toString
in class QCStatementInfo