|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.cert.extensions.X509V3Extension | +--com.rsa.certj.cert.extensions.QCStatements
This class builds and holds the QCStatements
extension, which
is used for inclusion of defined statements related to Qualified
Certificates. A typical statement suitable for inclusion in this extension
MAY be a statement by the issuer that the certificate is issued as
a Qualified Certificate in accordance with a particular legal system.
id-qcs-
pkixQCSyntax-v1
), identifying conformance with syntax and semantics
defined in this profile. This Qualified Certificate profile is
referred to as version 1.
qcStatement-1 QC-STATEMENT ::= { SYNTAX SemanticsInformation
IDENTIFIED BY id-qcs-pkixQCSyntax-v1 }
-- This statement identifies conformance with syntax and
-- semantics defined in this Qualified Certificate profile
-- (RFC 3039 Version 1). The |
qcStatements EXTENSION ::= { SYNTAX QCStatements IDENTIFIED BY id-pe-qcStatements } id-pe-qcStatements OBJECT IDENTIFIER ::= { id-pe 3} id-pe OBJECT IDENTIFIER ::= { id-pkix 1 } id-pkix OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) } QCStatements ::= SEQUENCE OF QCStatement QCStatement ::= SEQUENCE { statementId OBJECT IDENTIFIER, statementInfo ANY DEFINED BY statementId OPTIONAL} |
See Also
Constructor Summary |
|
QCStatements()
Constructs an empty |
|
QCStatements(byte[] statementID,
int idOffset,
int idLen,
byte[] statementInfo,
int infoOffset,
int infoLen,
boolean criticality)
Constructs a |
Method Summary |
|
void |
addQCStatement(byte[] statementID,
int idOffset,
int idLen,
byte[] statementInfo,
int infoOffset,
int infoLen)
Adds a QC statement |
clone()
Overrrides the default |
|
void |
decodeValue(byte[] valueBER,
int offset)
Decode the value. |
int |
derEncodeValue(byte[] encoding,
int offset)
Place the encoding of the value into encoding, beginning at offset. |
int |
derEncodeValueInit()
Initialize for encoding the value. |
int |
getQCStatementCount()
Gets the number of QC statements in this object. |
byte[] |
getQCStatementID(int index)
Gets the |
byte[] |
getQCStatementInfo(int index)
Gets the |
Methods inherited from class com.rsa.certj.cert.extensions.X509V3Extension |
extend, getCriticality, getDEREncoding, getDERLen, getExtensionType, getExtensionTypeString, getInstance, getNextBEROffset, isExtensionType, setCriticality, setEncoding, setSpecialOID, setStandardOID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QCStatements()
QCStatements
object.public QCStatements(byte[] statementID, int idOffset, int idLen, byte[] statementInfo, int infoOffset, int infoLen, boolean criticality) throws CertificateException
QCStatements
object and
initializes it with the given values and the specified
criticality.
Parameters
statementID | An object identifier for the statement. | ||
idOffset | An offset into statementID array. | ||
idLen | The length of the statement ID. | ||
statementInfo | An optional qualifying statement data.
This parameter contains the BER-encoding of the value and
can be | ||
infoOffset | An offset into statementinfo array | ||
infoLen | The length of the statement info | ||
criticality | A |
Throws
CertificateException
- If statementID is null
.Method Detail |
public void decodeValue(byte[] valueBER, int offset) throws CertificateException
Overrides
decodeValue
in class X509V3Extension
Parameters
valueBER | The BER encoding of the extension's value. | ||
offset | The offset into valueBER where the encoding actually begins. |
Throws
CertificateException
- If the encoding is
invalid for this extension.public void addQCStatement(byte[] statementID, int idOffset, int idLen, byte[] statementInfo, int infoOffset, int infoLen) throws CertificateException
Parameters
statementID | An object identifier for the statement. | ||
idOffset | An offset into statementID array. | ||
idLen | The length of the statement ID. | ||
statementInfo | An optional qualifying statement data.
This parameter contains the BER-encoding of the value and
can be | ||
infoOffset | An offset into statementinfo array. | ||
infoLen | The length of the statement info. |
Throws
CertificateException
- If statementID is null
.public byte[] getQCStatementID(int index) throws CertificateException
QCStatementID
value at the specified index.Parameters
index | An index that specifies the |
Returns
Throws
CertificateException
- if specified index is invalidpublic byte[] getQCStatementInfo(int index) throws CertificateException
QCStatementInfo
value at the specified
index.Parameters
index | An index that specifies the |
Returns
Throws
CertificateException
- if specified index is invalidpublic int getQCStatementCount()
Returns
public int derEncodeValueInit()
Overrides
derEncodeValueInit
in class X509V3Extension
Returns
0
if there is an error in encodingpublic int derEncodeValue(byte[] encoding, int offset)
Overrides
derEncodeValue
in class X509V3Extension
Parameters
encoding | The byte array into which the result will be placed. | ||
offset | The offest into encoding where the writing is to begin. |
Returns
public Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class X509V3Extension
Returns
QCStatements
object,
a copy of this object.
Throws
CloneNotSupportedException
- If the
cloning operation is not successful.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |