First public contribution.
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
26 #if !defined (X509BITSTRING_H)
27 #define X509BITSTRING_H
31 class CX509BitString : public CBase
32 /** An X.509 bit string.
39 * Frees all resources owned by the object. */
42 /** Tests whether the specified bit is set.
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;
50 /** Creates the X.509 bit string.
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);