os/security/cryptoservices/certificateandkeymgmt/pkcs8recog/pkcs8recog.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 /**
    20  @file
    21  @internalTechnology 
    22 */
    23 
    24 #ifndef __PKCS8RECOG_H__
    25 #define __PKCS8RECOG_H__
    26 
    27 #include <apmrec.h>
    28 
    29 /**
    30  * A recogniser that recognises the following MIME types:
    31  * application/pkcs8
    32  * application/pkcs8-encrypted
    33  */
    34 class CApaPkcs8Recognizer : public CApaDataRecognizerType
    35 	{
    36 public:
    37 	CApaPkcs8Recognizer();
    38 
    39 public: // from CApaDataRecognizerType
    40 	TUint PreferredBufSize();
    41 	TDataType SupportedDataTypeL(TInt aIndex) const;
    42 
    43 	static CApaDataRecognizerType* CreateRecognizerL();
    44 
    45 private: // from CApaDataRecognizerType
    46 	void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer);
    47 	};
    48 
    49 #endif
    50