cryptoservices/certificateandkeymgmt/inc/x509bitstring.h
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     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 * X509bitstring.h
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file 
       
    22  @internalTechnology
       
    23  @released
       
    24 */
       
    25 
       
    26 #if !defined (X509BITSTRING_H)
       
    27 #define X509BITSTRING_H
       
    28 
       
    29 //3) key usage
       
    30 
       
    31 class CX509BitString : public CBase
       
    32 /** An X.509 bit string. 
       
    33 *
       
    34 * @since v6.0 */
       
    35 	{
       
    36 public:
       
    37 	/** Destructor.
       
    38 	* 
       
    39 	* Frees all resources owned by the object. */
       
    40 	~CX509BitString();
       
    41 	
       
    42 	/** Tests whether the specified bit is set.
       
    43 	* 
       
    44 	* @param aBit	The offset of the bit to be tested. This is a value relative to 
       
    45 	* 				zero. Any value greater than or equal to the length of the bit 
       
    46 	*				string will always cause EFalse to be returned.
       
    47 	* @return		ETrue, if the bit is set; EFalse, otherwise. */
       
    48 	TBool IsSet(TInt aBit) const;
       
    49 	
       
    50 	/** Creates the X.509 bit string.
       
    51 	* 
       
    52 	* @param aData				A heap descriptor representing the bit string data.
       
    53 	* @param aEffectiveLength	The number of bits in the string. */
       
    54 	CX509BitString(HBufC8* aData, TInt aEffectiveLength);
       
    55 private:
       
    56 	HBufC8* iData;
       
    57 	TInt iLength;
       
    58 	};
       
    59 
       
    60 
       
    61 #endif