sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* X509bitstring.h
|
sl@0
|
16 |
*
|
sl@0
|
17 |
*/
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
/**
|
sl@0
|
21 |
@file
|
sl@0
|
22 |
@internalTechnology
|
sl@0
|
23 |
@released
|
sl@0
|
24 |
*/
|
sl@0
|
25 |
|
sl@0
|
26 |
#if !defined (X509BITSTRING_H)
|
sl@0
|
27 |
#define X509BITSTRING_H
|
sl@0
|
28 |
|
sl@0
|
29 |
//3) key usage
|
sl@0
|
30 |
|
sl@0
|
31 |
class CX509BitString : public CBase
|
sl@0
|
32 |
/** An X.509 bit string.
|
sl@0
|
33 |
*
|
sl@0
|
34 |
* @since v6.0 */
|
sl@0
|
35 |
{
|
sl@0
|
36 |
public:
|
sl@0
|
37 |
/** Destructor.
|
sl@0
|
38 |
*
|
sl@0
|
39 |
* Frees all resources owned by the object. */
|
sl@0
|
40 |
~CX509BitString();
|
sl@0
|
41 |
|
sl@0
|
42 |
/** Tests whether the specified bit is set.
|
sl@0
|
43 |
*
|
sl@0
|
44 |
* @param aBit The offset of the bit to be tested. This is a value relative to
|
sl@0
|
45 |
* zero. Any value greater than or equal to the length of the bit
|
sl@0
|
46 |
* string will always cause EFalse to be returned.
|
sl@0
|
47 |
* @return ETrue, if the bit is set; EFalse, otherwise. */
|
sl@0
|
48 |
TBool IsSet(TInt aBit) const;
|
sl@0
|
49 |
|
sl@0
|
50 |
/** Creates the X.509 bit string.
|
sl@0
|
51 |
*
|
sl@0
|
52 |
* @param aData A heap descriptor representing the bit string data.
|
sl@0
|
53 |
* @param aEffectiveLength The number of bits in the string. */
|
sl@0
|
54 |
CX509BitString(HBufC8* aData, TInt aEffectiveLength);
|
sl@0
|
55 |
private:
|
sl@0
|
56 |
HBufC8* iData;
|
sl@0
|
57 |
TInt iLength;
|
sl@0
|
58 |
};
|
sl@0
|
59 |
|
sl@0
|
60 |
|
sl@0
|
61 |
#endif
|