diff -r 000000000000 -r 33413c0669b9 vpnengine/dmadpki/inc/dmadcertreqparms.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vpnengine/dmadpki/inc/dmadcertreqparms.h Thu Dec 17 09:14:51 2009 +0200 @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Class definition of CDmAdCertReqParms. +* +*/ + + + +#ifndef __DMADCERTREQPARMS_H__ +#define __DMADCERTREQPARMS_H__ + +#include + +class CDmAdCertReqParms : public CBase + { +public: + static CDmAdCertReqParms* NewL(); + static CDmAdCertReqParms* NewLC(); + ~CDmAdCertReqParms(); + + TPtrC8 SubjectName() const; + void SetSubjectNameL(const TDesC8& aSubjectName); + TPtrC8 Rfc822Name() const; + void SetRfc822NameL(const TDesC8& aRfc822Name); + TInt KeyLength() const; + void SetKeyLength(TInt aKeyLength); + TPtrC8 Content() const; + void SetContentL(const TDesC8& aContent); + TPtrC KeyUri() const; + void SetKeyUriL(const TDesC& aContent); + + TPtrC8 KeyIdentifierByUri() const; + void SetKeyIdentifierByUriL(const TDesC8& aKeyIdentifierByUri); + +private: + CDmAdCertReqParms(); + +private: + HBufC8* iSubjectName; + HBufC8* iRfc822Name; + TInt iKeyLength; + HBufC8* iContent; + + HBufC8* iKeyIdentifierByUri; // key luid + }; + +#endif