public class QCSyntaxV2 extends SemanticsInformation
SemanticsInformation
statementInfo component of the
QCStatement version 2 (QCSyntax-v2).
The SemanticsInformation statement info for the QCSyntax-v2 QCStatement is associated with the statementID string "1.3.6.1.5.5.7.11.2", 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-v2 OBJECT IDENTIFIER ::= { id-qcs 2 }
The QCSyntaxV2 statement identifies conformance with the
version 2 of the PKIX Qualified Certificate Profile as specified in
RFC 3739.
If you have to identify conformance with the (obsolated) version 1 of the PKIX
Qualified Certificate Profile (RFC 3039) use the QCSyntaxV1
statement.
If you do not want to include a SemanticsInformation
component into your QCSyntaxV2 statement, simply specify the
QCSyntaxV1 statementID
when creating
a QCStatement:
QCStatement qcSyntaxV2Statement = new QCStatement(QCSyntaxV2.statementID);
If you want to include semantics information, supply semantics identifier and/or
name registration autorities when creating
a QCSyntaxV2 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: QCSyntaxV2 qcSyntaxV2 = new QCSyntaxV2(semanticsIdentifier, nameRegistrationAuthorities); // create a QCStatement for the QCSyntaxV2: QCStatement[] qcStatements = ...; qcStatements[0] = new QCStatement(qcSyntaxV2); // 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
,
QCSyntaxV1
,
QCStatementInfo
,
QCStatement
,
QCStatements
Modifier and Type | Field and Description |
---|---|
static ObjectID |
statementID
QCSyntaxV2 statement id (1.3.6.1.5.5.7.11.2).
|
Constructor and Description |
---|
QCSyntaxV2()
Default constructor.
|
QCSyntaxV2(ObjectID semanticsIdentifier,
GeneralName[] nameRegistrationAuthorities)
Creates an
QCSyntaxV2 object for the given
sematics identifier and name registration authorities. |
Modifier and Type | Method and Description |
---|---|
ObjectID |
getStatementID()
Returns the statement ID identifying this
QCSyntaxV2
statement info. |
decode, getNameRegistrationAuthorities, getSemanticsIdentifier, toASN1Object, toString
getName
public static final ObjectID statementID
public QCSyntaxV2()
QCSyntaxV2
object.
This constructor only is used for dynamic object creation and shall not be
used by an application.public QCSyntaxV2(ObjectID semanticsIdentifier, GeneralName[] nameRegistrationAuthorities)
QCSyntaxV2
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()
QCSyntaxV2
statement info.
The corresponding OID string is "1.3.6.1.5.5.7.1.11.2".getStatementID
in class SemanticsInformation
QCSyntaxV2
statement info