1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/inc/x509bitstring.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,61 @@
1.4 +/*
1.5 +* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* X509bitstring.h
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +/**
1.24 + @file
1.25 + @internalTechnology
1.26 + @released
1.27 +*/
1.28 +
1.29 +#if !defined (X509BITSTRING_H)
1.30 +#define X509BITSTRING_H
1.31 +
1.32 +//3) key usage
1.33 +
1.34 +class CX509BitString : public CBase
1.35 +/** An X.509 bit string.
1.36 +*
1.37 +* @since v6.0 */
1.38 + {
1.39 +public:
1.40 + /** Destructor.
1.41 + *
1.42 + * Frees all resources owned by the object. */
1.43 + ~CX509BitString();
1.44 +
1.45 + /** Tests whether the specified bit is set.
1.46 + *
1.47 + * @param aBit The offset of the bit to be tested. This is a value relative to
1.48 + * zero. Any value greater than or equal to the length of the bit
1.49 + * string will always cause EFalse to be returned.
1.50 + * @return ETrue, if the bit is set; EFalse, otherwise. */
1.51 + TBool IsSet(TInt aBit) const;
1.52 +
1.53 + /** Creates the X.509 bit string.
1.54 + *
1.55 + * @param aData A heap descriptor representing the bit string data.
1.56 + * @param aEffectiveLength The number of bits in the string. */
1.57 + CX509BitString(HBufC8* aData, TInt aEffectiveLength);
1.58 +private:
1.59 + HBufC8* iData;
1.60 + TInt iLength;
1.61 + };
1.62 +
1.63 +
1.64 +#endif