public class QCSyntaxV1 extends SemanticsInformation
SemanticsInformation statementInfo component
of the QCStatement version 1 (QCSyntax-v1).
The SemanticsInformation statement info for the QCSyntax-v1 QCStatement is associated with the statementID string "1.3.6.1.5.5.7.11.1", which is derived from: *
id-pkix OBJECT IDENTIFIER ::=
{ iso(1) identified-organization(3) dod(6) internet(1)
security(5) mechanisms(5) pkix(7) }
id-qcs OBJECT IDENTIFIER ::= { id-pkix 11 }
id-qcs-pkixQCSyntax-v1 OBJECT IDENTIFIER ::= { id-qcs 1 }
The QCSyntaxV1 statement may be used to identify conformance with the
(obsoleted) version 1 of the PKIX Qualified Certificate Profile as specified in
RFC 3039.
To identify conformance with the current version 2 of the PKIX Qualified
Certificate Profile (RFC 3739) use the QCSyntaxV2 statement.
If you do not want to include a SemanticsInformation
component into your QCSyntaxV1 statement, simply specify the
QCSyntaxV1 statementID when creating a QCStatement:
QCStatement qcSyntaxV1Statement = new QCStatement(QCSyntaxV1.statementID);
If you want to include semantics information, supply semantics identifier and/or
name registration autorities when creating
a QCSyntaxV1 object. Subsequently create a QCStatement object for the SemanticsInformation and add the QCStatement to
a QCStatements
certificate extension, e.g.:
ObjectID semanticsIdentifier = ...; GeneralName[] nameRegistrationAuthorities = ...; // create the SemanticsInformation: QCSyntaxV1 qcSyntaxV1 = new QCSyntaxV1(semanticsIdentifier, nameRegistrationAuthorities); // create a QCStatement for the QCSyntaxV1: QCStatement[] qcStatements = ...; qcStatements[0] = new QCStatement(qcSyntaxV1); // add any further QCStatements ... // create a QCStatements extension from the QCStatements: QCStatements qcStatementsExt = new QCStatements(qcStatements);For adding a
QCStatements extension object to a QualifiedCertificate, use
the addExtension
or setQCStatements
method of the QualifiedCertificate
class:
QualifiedCertificate cert = new QualifiedCertificate(); ... cert.setQCStatements(qcStatementsExt);
SemanticsInformation,
QCSyntaxV2,
QCStatementInfo,
QCStatement,
QCStatements| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
statementID
QCSyntaxV1 statement id (1.3.6.1.5.5.7.11.1).
|
| Constructor and Description |
|---|
QCSyntaxV1()
Default constructor.
|
QCSyntaxV1(ObjectID semanticsIdentifier,
GeneralName[] nameRegistrationAuthorities)
Creates an
QCSyntaxV1 object for the given
sematics identifier and name registration authorities. |
| Modifier and Type | Method and Description |
|---|---|
ObjectID |
getStatementID()
Returns the statement ID identifying this
QCSyntaxV1
statement info. |
decode, getNameRegistrationAuthorities, getSemanticsIdentifier, toASN1Object, toStringgetNamepublic static final ObjectID statementID
public QCSyntaxV1()
QCSyntaxV1 object.
This constructor only is used for dynamic object creation and shall not be
used by an application.public QCSyntaxV1(ObjectID semanticsIdentifier, GeneralName[] nameRegistrationAuthorities)
QCSyntaxV1 object for the given
sematics identifier and name registration authorities.semanticsIdentifier - the semantics identifiernameRegistrationAuthorities - the name registration authorities to be includedjava.lang.IllegalArgumentException - if both semanticsIdentifier and nameRegistrationAuthorities
are null which is not allowedpublic ObjectID getStatementID()
QCSyntaxV1
statement info.
The corresponding OID string is "1.3.6.1.5.5.7.1.11.1".getStatementID in class SemanticsInformationQCSyntaxV1
statement info