appinstaller/AppinstUi/Plugin/SisxUI/Src/SisxUICertificateInfo.cpp
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2002-2004 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 "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:   This file contains the implementation of CSisxUICertificateInfo
       
    15 *                class member functions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "SisxUICertificateInfo.h"
       
    22 #include <swi/msisuihandlers.h>
       
    23 
       
    24 
       
    25 using namespace SwiUI;
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // CSisxUICertificateInfo::CSisxUICertificateInfo
       
    31 // C++ default constructor can NOT contain any code, that
       
    32 // might leave.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CSisxUICertificateInfo::CSisxUICertificateInfo( const Swi::CCertificateInfo& aCertInfo )
       
    36     : iCertInfo( aCertInfo )
       
    37     {  
       
    38     }
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CSisxUICertificateInfo::ConstructL
       
    42 // Symbian 2nd phase constructor can leave.
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 void CSisxUICertificateInfo::ConstructL()
       
    46     {
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CSisxUICertificateInfo::NewL
       
    51 // Two-phased constructor.
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CSisxUICertificateInfo* CSisxUICertificateInfo::NewL( 
       
    55     const Swi::CCertificateInfo& aCertInfo )
       
    56     {
       
    57     CSisxUICertificateInfo* self = new( ELeave ) CSisxUICertificateInfo( aCertInfo );
       
    58     CleanupStack::PushL( self );
       
    59     self->ConstructL();
       
    60     CleanupStack::Pop( self );
       
    61     return self;    
       
    62     }
       
    63     
       
    64 // Destructor
       
    65 CSisxUICertificateInfo::~CSisxUICertificateInfo()
       
    66     {
       
    67     }
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // CSisxUICertificateInfo::SubjectName
       
    71 // Getter for subject field.
       
    72 // (other items were commented in a header).
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 const TDesC& CSisxUICertificateInfo::SubjectNameL() const
       
    76     {
       
    77     return iCertInfo.SubjectName();    
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CSisxUICertificateInfo::IssuerName
       
    82 // Getter for issuer field.
       
    83 // (other items were commented in a header).
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 const TDesC& CSisxUICertificateInfo::IssuerNameL() const
       
    87     {
       
    88     return iCertInfo.IssuerName();    
       
    89     }
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // CSisxUICertificateInfo::ValidFrom
       
    93 // Getter for valid from field.
       
    94 // (other items were commented in a header).
       
    95 // -----------------------------------------------------------------------------
       
    96 //
       
    97 TDateTime CSisxUICertificateInfo::ValidFromL() const
       
    98     {
       
    99     return iCertInfo.ValidFrom();    
       
   100     }
       
   101 
       
   102 // -----------------------------------------------------------------------------
       
   103 // CSisxUICertificateInfo::ValidTo
       
   104 // Getter for certificate expiration date.
       
   105 // (other items were commented in a header).
       
   106 // -----------------------------------------------------------------------------
       
   107 //
       
   108 TDateTime CSisxUICertificateInfo::ValidToL() const
       
   109     {
       
   110     return iCertInfo.ValidTo();    
       
   111     }
       
   112 
       
   113 // -----------------------------------------------------------------------------
       
   114 // CSisxUICertificateInfo::Fingerprint
       
   115 // Getter for fingerprint of the certificate.
       
   116 // (other items were commented in a header).
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 const TDesC8& CSisxUICertificateInfo::FingerprintL() const
       
   120     {
       
   121     return iCertInfo.Fingerprint();    
       
   122     }
       
   123 
       
   124 // -----------------------------------------------------------------------------
       
   125 // CSisxUICertificateInfo::SerialNumber
       
   126 // Getter for serial number of the certificate.
       
   127 // (other items were commented in a header).
       
   128 // -----------------------------------------------------------------------------
       
   129 //
       
   130 const TDesC8& CSisxUICertificateInfo::SerialNumberL() const
       
   131     {
       
   132     return iCertInfo.SerialNumber();
       
   133     }
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // CSisxUICertificateInfo::IsSelfSignedL
       
   137 // Indicates wheter this certificate is self signed.
       
   138 // (other items were commented in a header).
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 TBool CSisxUICertificateInfo::IsSelfSignedL() const
       
   142     {
       
   143     return EFalse;    
       
   144     }
       
   145 
       
   146 // -----------------------------------------------------------------------------
       
   147 // CSisxUICertificateInfo::EncodingL
       
   148 // Gets the full encoding of this certificate.
       
   149 // (other items were commented in a header).
       
   150 // -----------------------------------------------------------------------------
       
   151 //
       
   152 const TDesC8& CSisxUICertificateInfo::EncodingL() const
       
   153     {
       
   154     return KNullDesC8();    
       
   155     }
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 // CSisxUICertificateInfo::SignatureL
       
   159 // Gets the signature of this certificate.
       
   160 // (other items were commented in a header).
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 const TDesC8& CSisxUICertificateInfo::SignatureL() const
       
   164     {
       
   165     return KNullDesC8();    
       
   166     }
       
   167 
       
   168 // -----------------------------------------------------------------------------
       
   169 // CCUICertificateInfo::PublicKeyAlgorithmL
       
   170 // Gets the public key algorithm of the certificate.
       
   171 // (other items were commented in a header).
       
   172 // -----------------------------------------------------------------------------
       
   173 //
       
   174 TAlgorithmId CSisxUICertificateInfo::PublicKeyAlgorithmL() const
       
   175     {
       
   176     return TAlgorithmId( -1 );    
       
   177     }
       
   178 
       
   179 // -----------------------------------------------------------------------------
       
   180 // CCUICertificateInfo::DigestAlgorithmL
       
   181 // Gets the digest algorithm of the certificate.
       
   182 // (other items were commented in a header).
       
   183 // -----------------------------------------------------------------------------
       
   184 //
       
   185 TAlgorithmId CSisxUICertificateInfo::DigestAlgorithmL() const
       
   186     {
       
   187     return TAlgorithmId( -1 );    
       
   188     }
       
   189 
       
   190 //  End of File