public class QcCClegislation extends QCStatementInfo
QcCClegislation
QCStatementInfo.
The QcCClegislation 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-QcCClegislation OBJECT IDENTIFIER ::= { id-etsi-qcs 7 }
which corresponds to the OID string "0.4.0.1862.1.7".
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 QcCClegislation statement info for identifies the country or set of countries under the legislation of which the certificate is issued as a qualified certificate, see ETSI EN 319 412-5:
QcCClegislation ::= SEQUENCE OF CountryName CountryName ::= PrintableString (SIZE (2)) (CONSTRAINED BY { -- ISO 3166-1 [6] alpha-2 codes only -- })
QCStatementInfo
,
QCStatement
,
QCStatements
Modifier and Type | Field and Description |
---|---|
static ObjectID |
statementID
The statement id of the QcCClegislation statement info.
|
Constructor and Description |
---|
QcCClegislation()
Default constructor.
|
QcCClegislation(ASN1Object obj)
Creates a QcCClegislation from its ASN.1 representation.
|
QcCClegislation(java.lang.String[] countryNames)
Creates a
QcCClegislation object for the given country names. |
Modifier and Type | Method and Description |
---|---|
void |
addCountryName(java.lang.String countryName)
Adds the given CountryName element.
|
void |
decode(ASN1Object obj)
Decodes a QcCClegislation from its ASN.1 representation.
|
java.lang.String[] |
getCountryNames()
Gets all CountryName elements.
|
ObjectID |
getStatementID()
Returns the statement ID identifying this
QcCClegislation
statement info. |
ASN1Object |
toASN1Object()
Returns an ASN1Object representing this
QcCClegislation
object. |
java.lang.String |
toString()
Returns a string that represents the contents of
this
QcCClegislation statement info. |
getName
public static final ObjectID statementID
public QcCClegislation()
QcCClegislation
object.
Use method addCountryName
to
add CountryName elements.
public QcCClegislation(java.lang.String[] countryNames)
QcCClegislation
object for the given country names.countryNames
- the country namespublic QcCClegislation(ASN1Object obj) throws CodingException
obj
- the QcCClegislation as ASN1ObjectCodingException
- if the ASN1Object cannot be parsedpublic void addCountryName(java.lang.String countryName)
countryName
- the CountryName to be addedpublic java.lang.String[] getCountryNames()
public ObjectID getStatementID()
QcCClegislation
statement info.
The corresponding OID string is "0.4.0.1862.1.7".getStatementID
in class QCStatementInfo
QcCClegislation
statement infopublic void decode(ASN1Object obj) throws CodingException
The given ASN1Object represents a QcCClegislation statement info not including the statementID.
decode
in class QCStatementInfo
obj
- the QcCClegislation as ASN1ObjectCodingException
- if the object cannot be parsedpublic ASN1Object toASN1Object()
QcCClegislation
object.toASN1Object
in class QCStatementInfo
public java.lang.String toString()
QcCClegislation
statement info.toString
in class QCStatementInfo