os/security/cryptoservices/filebasedcertificateandkeystores/test/thwkeystore/common/tkeydetails.h
Update contrib.
2 * Copyright (c) 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.
15 * Defines the class which represents the structure of the key on
16 * which Crypto Token HAI internally operates. It contains the key
17 * information relevant to Crypto Token HAI.
32 #include <mctkeystore.h>
34 class CKeyDetails : public CKeyInfoBase
37 static CKeyDetails* NewL( TInt aHandle, const TDesC& aLabel,
38 const TDesC8& aPrivateKey, const TDesC8& aPublicKey );
39 static CKeyDetails* NewL(RStoreReadStream& aReadStream);
43 /** Get the handle of the key. */
45 HBufC8* PrivateKey() const;
46 HBufC8* PublicKey() const;
47 void ExternalizeL(RWriteStream&) const;
50 CKeyDetails(TKeyIdentifier aID,
51 TKeyUsagePKCS15 aUsage,
55 const TSecurityPolicy& aUsePolicy,
56 const TSecurityPolicy& aManagementPolicy,
57 EKeyAlgorithm aAlgorithm,
62 HBufC8* aPKCS8AttributeSet);
64 void ConstructL(const TDesC8& aPrivateKey, const TDesC8& aPublicKey );
65 void ConstructL( RStoreReadStream& aReadStream);
67 void InternalizeL(RReadStream& aReadStream);
74 #endif // TKEYDETAILS_H