sl@0: /* sl@0: * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * MCTKeyStore.inl sl@0: * CKeyInfoBase sl@0: * sl@0: */ sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: inline TKeyIdentifier CKeyInfoBase::ID() const sl@0: { sl@0: return iID; sl@0: } sl@0: sl@0: inline TKeyUsagePKCS15 CKeyInfoBase::Usage() const sl@0: { sl@0: return iUsage; sl@0: } sl@0: sl@0: inline TUint CKeyInfoBase::Size() const sl@0: { sl@0: return iSize; sl@0: } sl@0: sl@0: inline const TDesC& CKeyInfoBase::Label() const sl@0: { sl@0: if (iLabel) sl@0: return *iLabel; sl@0: else sl@0: return KNullDesC; sl@0: } sl@0: sl@0: inline const TSecurityPolicy& CKeyInfoBase::UsePolicy() const sl@0: { sl@0: return iUsePolicy; sl@0: } sl@0: sl@0: inline const TSecurityPolicy& CKeyInfoBase::ManagementPolicy() const sl@0: { sl@0: return iManagementPolicy; sl@0: } sl@0: sl@0: inline CKeyInfoBase::EKeyAlgorithm CKeyInfoBase::Algorithm() const sl@0: { sl@0: return iAlgorithm; sl@0: } sl@0: sl@0: inline TInt CKeyInfoBase::AccessType() const sl@0: { sl@0: return iAccessType; sl@0: } sl@0: sl@0: inline TBool CKeyInfoBase::Native() const sl@0: { sl@0: return iNative; sl@0: } sl@0: sl@0: inline TTime CKeyInfoBase::StartDate() const sl@0: { sl@0: return iStartDate; sl@0: } sl@0: sl@0: inline TTime CKeyInfoBase::EndDate() const sl@0: { sl@0: return iEndDate; sl@0: } sl@0: sl@0: inline const TDesC8& CKeyInfoBase::PKCS8AttributeSet() const sl@0: { sl@0: if (iPKCS8AttributeSet) sl@0: return *iPKCS8AttributeSet; sl@0: else sl@0: return KNullDesC8; sl@0: } sl@0: sl@0: inline TInt CKeyInfoBase::HandleID() const sl@0: { sl@0: return iHandle; sl@0: } sl@0: sl@0: inline void CKeyInfoBase::SetHandle(TInt aHandle) sl@0: { sl@0: iHandle = aHandle; sl@0: } sl@0: sl@0: inline void CKeyInfoBase::SetIdentifier(TKeyIdentifier aId) sl@0: { sl@0: iID = aId; sl@0: } sl@0: sl@0: inline void CKeyInfoBase::SetSize(TUint aSize) sl@0: { sl@0: iSize = aSize; sl@0: } sl@0: sl@0: inline void CKeyInfoBase::SetAlgorithm(EKeyAlgorithm aAlg) sl@0: { sl@0: iAlgorithm = aAlg; sl@0: } sl@0: sl@0: // CCTKeyInfo sl@0: sl@0: inline CCTKeyInfo::operator TCTTokenObjectHandle() const sl@0: { sl@0: return Handle(); sl@0: } sl@0: sl@0: inline MCTAuthenticationObject* CCTKeyInfo::Protector() const sl@0: { sl@0: return iProtector; sl@0: } sl@0: sl@0: inline void CCTKeyInfo::SetProtector(MCTAuthenticationObject& aProtector) sl@0: { sl@0: iProtector = &aProtector; sl@0: }