class CX509CertExtension : public CBase |
A generic X.509 certificate extension.
The creation of a generic extension is the first step in the creation of a specific extension. Client code gets the decoded Object Identifier (OID) encapsulated by an instance of this class and uses it to create the specific extension.
Consists of an any-defined-by structure along with a boolean flag saying whether the extension is critical or not.
Public Member Functions | |
---|---|
~CX509CertExtension () | |
IMPORT_C TBool | Critical () |
IMPORT_C TPtrC8 | Data () |
IMPORT_C CASN1EncSequence * | EncodeASN1DERLC () |
IMPORT_C TPtrC | Id () |
IMPORT_C CX509CertExtension * | NewL (const CX509CertExtension &) |
IMPORT_C CX509CertExtension * | NewL (const TDesC8 &) |
IMPORT_C CX509CertExtension * | NewL (const TDesC8 &, TInt &) |
IMPORT_C CX509CertExtension * | NewL (const TDesC &, const TBool , const TDesC8 &) |
IMPORT_C CX509CertExtension * | NewLC (const CX509CertExtension &) |
IMPORT_C CX509CertExtension * | NewLC (const TDesC8 &) |
IMPORT_C CX509CertExtension * | NewLC (const TDesC8 &, TInt &) |
IMPORT_C CX509CertExtension * | NewLC (const TDesC &, const TBool , const TDesC8 &) |
Private Member Functions | |
---|---|
CX509CertExtension () | |
void | ConstructL (const TDesC8 &, TInt &) |
void | ConstructL (const CX509CertExtension &) |
void | ConstructL (const TDesC &, const TBool , const TDesC8 &) |
Private Attributes | |
---|---|
TBool | iCritical |
HBufC8 * | iData |
HBufC * | iId |
IMPORT_C | ~CX509CertExtension | ( | ) |
Destructor.
Frees all resources owned by the object, prior to its destruction.
void | ConstructL | ( | const TDesC8 & | aBinaryData, |
TInt & | aPos | |||
) | [private] |
void | ConstructL | ( | const CX509CertExtension & | aExtension | ) | [private] |
const CX509CertExtension & aExtension |
void | ConstructL | ( | const TDesC & | aCertExtOID, |
const TBool | aCritical, | |||
const TDesC8 & | aCertExtValue | |||
) | [private] |
IMPORT_C TBool | Critical | ( | ) | const |
Tests whether certificate processing code must process this extension for certificate validation to succeed.
IMPORT_C TPtrC8 | Data | ( | ) | const |
Gets the encoded binary representation of the specific extension.
IMPORT_C CASN1EncSequence * | EncodeASN1DERLC | ( | ) | const |
Creates and returns a DER encoded X.509 certificate extension object in the form of a ASN.1 Sequence and puts it onto the cleanup stack. This method can be called repeatedly to get copies of the sequence.
IMPORT_C CX509CertExtension * | NewL | ( | const CX509CertExtension & | aExtension | ) | [static] |
Creates a new generic X.509 certificate extension object from an existing object.
This is equivalent to a copy constructor.
const CX509CertExtension & aExtension | The generic certificate extension to be copied. |
IMPORT_C CX509CertExtension * | NewL | ( | const TDesC8 & | aBinaryData | ) | [static] |
Creates a new generic X.509 certificate extension object from the specified buffer containing the binary coded representation.
const TDesC8 & aBinaryData | The encoded binary representation. |
IMPORT_C CX509CertExtension * | NewL | ( | const TDesC8 & | aBinaryData, |
TInt & | aPos | |||
) | [static] |
Creates a new generic X.509 certificate extension object from the specified buffer containing the binary coded representation, starting at the specified offset.
IMPORT_C CX509CertExtension * | NewL | ( | const TDesC & | aCertExtOID, |
const TBool | aCritical, | |||
const TDesC8 & | aCertExtValue | |||
) | [static] |
Creates a new generic X.509 certificate extension object from the specified extension object id, the critcal flag and the extension data.
IMPORT_C CX509CertExtension * | NewLC | ( | const CX509CertExtension & | aExtension | ) | [static] |
Creates a new generic X.509 certificate extension object from an existing object, and puts a pointer to it onto the cleanup stack.
This is equivalent to a copy constructor.
const CX509CertExtension & aExtension | The generic certificate extension to be copied. |
IMPORT_C CX509CertExtension * | NewLC | ( | const TDesC8 & | aBinaryData | ) | [static] |
Creates a new generic X.509 certificate extension object from the specified buffer containing the binary coded representation, and puts a pointer to it onto the cleanup stack .
const TDesC8 & aBinaryData | The encoded binary representation. |
IMPORT_C CX509CertExtension * | NewLC | ( | const TDesC8 & | aBinaryData, |
TInt & | aPos | |||
) | [static] |
Creates a new generic X.509 certificate extension object from the specified buffer containing the binary coded representation, starting at the specified offset, and puts a pointer to it onto the cleanup stack.
IMPORT_C CX509CertExtension * | NewLC | ( | const TDesC & | aCertExtOID, |
const TBool | aCritical, | |||
const TDesC8 & | aCertExtValue | |||
) | [static] |
Creates a new generic X.509 certificate extension object from the specified extension object id, the critcal flag and the extension data, and puts a pointer to it onto the cleanup stack.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.