First public contribution.
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
26 #ifndef __PKCS7_EXTENDED_CERTIFICATE_OR_CERTIFICATE_H__
27 #define __PKCS7_EXTENDED_CERTIFICATE_OR_CERTIFICATE_H__
31 class CX509Certificate;
32 class CASN1EncEncoding;
36 An instance of a member of the RFC2315 ExtendedCertificatesAndCertificates.
37 At present, only X509 certificates are supported.
38 (not PKCS#6 extended certificates).
41 class CPKCS7ExtendedCertificateOrCertificate : public CBase
45 Creates an ExtendedCertificatesAndCertificates as defined in RFC2315.
46 @param aRawData The encoded CertificateChoices object to be decoded.
47 @return The fully constructed object.
49 static CPKCS7ExtendedCertificateOrCertificate* NewL(const TDesC8& aRawData);
54 ~CPKCS7ExtendedCertificateOrCertificate();
57 Returns the x509 certificate reference if the certificate is a X509 certificate.
58 Callers need to check whether the certificate's type is X509 beforehand.
59 @return The x509 certificate reference.
61 IMPORT_C const CX509Certificate& Certificate(void) const;
67 CPKCS7ExtendedCertificateOrCertificate();
71 @param the source object to be copied
73 CPKCS7ExtendedCertificateOrCertificate(const CPKCS7ExtendedCertificateOrCertificate&);
76 Second phase constructor for decoding.
77 @param aRawData the raw data to be decoded.
79 void ConstructL(const TDesC8& aRawData);
83 The X509 certificate pointer
85 CX509Certificate* iCertificate;