CX509CertExtension Class Reference
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.
Constructor & Destructor Documentation
CX509CertExtension()
CX509CertExtension | ( | ) | [private] |
~CX509CertExtension()
IMPORT_C | ~CX509CertExtension | ( | ) | |
Destructor.
Frees all resources owned by the object, prior to its destruction.
Member Functions Documentation
ConstructL(const TDesC8 &, TInt &)
void | ConstructL | ( | const TDesC8 & | aBinaryData, |
| TInt & | aPos |
| ) | [private] |
ConstructL(const CX509CertExtension &)
ConstructL(const TDesC &, const TBool, const TDesC8 &)
void | ConstructL | ( | const TDesC & | aCertExtOID, |
| const TBool | aCritical, |
| const TDesC8 & | aCertExtValue |
| ) | [private] |
Critical()
IMPORT_C TBool | Critical | ( | ) | const |
Tests whether certificate processing code must process this extension for certificate validation to succeed.
Data()
Gets the encoded binary representation of the specific extension.
EncodeASN1DERLC()
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.
Id()
Gets the Object Identifier (OID) of the certficate extension.
NewL(const CX509CertExtension &)
Creates a new generic X.509 certificate extension object from an existing object.
This is equivalent to a copy constructor.
NewL(const TDesC8 &)
Creates a new generic X.509 certificate extension object from the specified buffer containing the binary coded representation.
Parameters
const TDesC8 & aBinaryData | The encoded binary representation. |
NewL(const TDesC8 &, TInt &)
Creates a new generic X.509 certificate extension object from the specified buffer containing the binary coded representation, starting at the specified offset.
Parameters
const TDesC8 & aBinaryData | The encoded binary representation. |
TInt & aPos | The offset position from which to start decoding. |
NewL(const TDesC &, const TBool, const TDesC8 &)
Creates a new generic X.509 certificate extension object from the specified extension object id, the critcal flag and the extension data.
Parameters
const TDesC & aCertExtOID | The OID of the certficate extension. |
const TBool aCritical | Flag to convey criticality of the extension. |
const TDesC8 & aCertExtValue | The data of the specific extension. |
NewLC(const CX509CertExtension &)
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.
NewLC(const TDesC8 &)
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 .
Parameters
const TDesC8 & aBinaryData | The encoded binary representation. |
NewLC(const TDesC8 &, TInt &)
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.
Parameters
const TDesC8 & aBinaryData | The encoded binary representation. |
TInt & aPos | The offset position from which to start decoding. |
NewLC(const TDesC &, const TBool, const TDesC8 &)
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.
Parameters
const TDesC & aCertExtOID | The OID of the certficate extension. |
const TBool aCritical | Flag to convey criticality of the extension. |
const TDesC8 & aCertExtValue | The data of the specific extension. |
Member Data Documentation
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.