cryptoservices/certificateandkeymgmt/tcertstore/t_certstoreout.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     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 * TCERTSTOREOUT.H
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file 
       
    24  @internalTechnology
       
    25 */
       
    26  
       
    27 #ifndef __T_CERTSTOREOUT_H__
       
    28 #define __T_CERTSTOREOUT_H__
       
    29  
       
    30 #include <f32file.h>
       
    31 #include <e32base.h>
       
    32 #include <e32std.h>
       
    33 #include <e32cons.h>
       
    34 
       
    35 #include <x509cert.h>
       
    36 #include <x509certext.h>
       
    37 
       
    38 #include <wtlscert.h>
       
    39 
       
    40 #include "t_output.h"
       
    41 
       
    42 class X509CertWriter
       
    43 	{
       
    44 public:
       
    45 	X509CertWriter(Output& aOut);
       
    46 	void WriteCert(const CX509Certificate& aCertificate);
       
    47 	void ShowSigningAlgorithm(const CSigningAlgorithmIdentifier& aSigningAlgorithm);
       
    48 	void ShowPublicKey(const CX509Certificate& aCertificate);
       
    49 	void ShowSerialNumber(const TPtrC8& aSerialNumber);
       
    50 	void ShowAVA(const CX520AttributeTypeAndValue& aAva);
       
    51 	void ShowDN(const CX500DistinguishedName& aName);
       
    52 	void ShowAKI(const CX509Certificate& aCert);
       
    53 	void ShowSKI(const CX509Certificate& aCert);
       
    54 	void ShowGN(const CX509GeneralName& aName);
       
    55 	void ShowFingerprint(const CX509Certificate& aCertificate);
       
    56 	void ShowExtensions(const CX509Certificate& aCertificate);
       
    57 	void ShowValidityPeriod(const CX509Certificate& aCertificate);
       
    58 	void ShowBC(const CX509CertExtension& aExt);
       
    59 	void ShowAltName(const CX509CertExtension& aExt);
       
    60 	void ShowKU(const CX509CertExtension& aExt);
       
    61 	void ShowSubtrees(const CArrayPtrFlat<CX509GeneralSubtree>& aSubtrees);
       
    62 	void ShowNC(const CX509CertExtension& aExt);
       
    63 	void ShowPC(const CX509CertExtension& aExt);
       
    64 	void ShowCP(const CX509CertExtension& aExt);
       
    65 	void ShowPM(const CX509CertExtension& aExt);
       
    66 	void ShowEKU(const CX509CertExtension& aExt);
       
    67 	void ShowSignature(const CX509Certificate& aCert);
       
    68 private:
       
    69 	void WriteEncodings(const CX509Certificate& aCertificate);
       
    70 	void WriteEncoding(const CX509Certificate& aCertificate, const TUint aIndex);
       
    71 	void ShowRSAKey(const CSubjectPublicKeyInfo& aSpki);
       
    72 	void ShowDSAKey(const CSubjectPublicKeyInfo& aSpki);
       
    73 	void ShowDHKey(const CSubjectPublicKeyInfo& aSpki);
       
    74 	Output& iOut;
       
    75 	};
       
    76 
       
    77 class WTLSCertWriter
       
    78 	{
       
    79 public:
       
    80 	WTLSCertWriter(Output& aOut);
       
    81 	void WriteCert(const CWTLSCertificate& aCertificate);
       
    82 	void ShowName(const CWTLSName& aName);
       
    83 private:
       
    84 	Output& iOut;
       
    85 	};
       
    86 
       
    87 
       
    88 #endif