diff -r 000000000000 -r 33413c0669b9 vpnengine/ikecert/inc/ikepublickey.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vpnengine/ikecert/inc/ikepublickey.h Thu Dec 17 09:14:51 2009 +0200 @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2007 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 containing information about one public key +* +*/ + + + +#ifndef C_IKEPUBLICKEY_H +#define C_IKEPUBLICKEY_H + +#include +#include "pkidefs.h" + +class CX509Certificate; + +/** + * Class containing information about one public key. + * Contains: key parameters, key data and key type info. + * + * @lib IkeCert.lib + * @since S60 v3.0 + */ +class CIkePublicKey : public CBase + { +public: + static CIkePublicKey* NewL(const CX509Certificate& aCert); + ~CIkePublicKey(); + + TPKIKeyAlgorithm Algorithm() const; + const TDesC8& KeyData() const; + const TDesC8& KeyParams() const; + +private: + CIkePublicKey(); + + HBufC8* iKeyParams; + HBufC8* iKeyData; + TPKIKeyAlgorithm iAlgorithm; + }; + +#endif // ? C_PUBLICKEY_H