epoc32/include/mctkeystore.inl
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 2003-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 * MCTKeyStore.inl
    16 * CKeyInfoBase
    17 *
    18 */
    19 
    20 
    21 inline TKeyIdentifier CKeyInfoBase::ID() const
    22 	{
    23 	return iID;
    24 	}
    25 
    26 inline TKeyUsagePKCS15 CKeyInfoBase::Usage() const
    27 	{
    28 	return iUsage;
    29 	}
    30 
    31 inline TUint CKeyInfoBase::Size() const
    32 	{
    33 	return iSize;
    34 	}
    35 
    36 inline const TDesC& CKeyInfoBase::Label() const
    37 	{	
    38 	if (iLabel)
    39 		return *iLabel;
    40 	else
    41 		return KNullDesC;
    42 	}
    43 
    44 inline const TSecurityPolicy& CKeyInfoBase::UsePolicy() const
    45 	{
    46 	return iUsePolicy;
    47 	}
    48 
    49 inline const TSecurityPolicy& CKeyInfoBase::ManagementPolicy() const
    50 	{
    51 	return iManagementPolicy;
    52 	}
    53 
    54 inline CKeyInfoBase::EKeyAlgorithm CKeyInfoBase::Algorithm() const
    55 	{
    56 	return iAlgorithm;
    57 	}
    58 
    59 inline TInt CKeyInfoBase::AccessType() const
    60 	{
    61 	return iAccessType;
    62 	}
    63 
    64 inline TBool CKeyInfoBase::Native() const
    65 	{
    66 	return iNative;
    67 	}
    68 
    69 inline TTime CKeyInfoBase::StartDate() const
    70 	{
    71 	return iStartDate;
    72 	}
    73 
    74 inline TTime CKeyInfoBase::EndDate() const
    75 	{
    76 	return iEndDate;
    77 	}
    78 
    79 inline const TDesC8& CKeyInfoBase::PKCS8AttributeSet() const
    80 	{
    81 	if (iPKCS8AttributeSet)
    82 		return *iPKCS8AttributeSet;
    83 	else
    84 		return KNullDesC8;
    85 	}
    86 
    87 inline TInt CKeyInfoBase::HandleID() const
    88 	{
    89 	return iHandle;
    90 	}
    91 
    92 inline void CKeyInfoBase::SetHandle(TInt aHandle)
    93 	{
    94 	iHandle = aHandle;
    95 	}
    96 
    97 inline void CKeyInfoBase::SetIdentifier(TKeyIdentifier aId)
    98 	{
    99 	iID = aId;
   100 	}
   101 
   102 inline void CKeyInfoBase::SetSize(TUint aSize)
   103 	{
   104 	iSize = aSize;
   105 	}
   106 
   107 inline void CKeyInfoBase::SetAlgorithm(EKeyAlgorithm aAlg)
   108 	{
   109 	iAlgorithm = aAlg;
   110 	}
   111 
   112 // CCTKeyInfo
   113 
   114 inline CCTKeyInfo::operator TCTTokenObjectHandle() const
   115 	{
   116 	return Handle();
   117 	}
   118 
   119 inline MCTAuthenticationObject* CCTKeyInfo::Protector() const
   120 	{
   121 	return iProtector;
   122 	}
   123 
   124 inline void CCTKeyInfo::SetProtector(MCTAuthenticationObject& aProtector)
   125 	{
   126 	iProtector = &aProtector;
   127 	}