Package org.apache.directory.api.asn1.util

Class Summary
Asn1StringUtils Little helper class for the asn1 package.
BitString Implement the Bit String primitive type.
Oid This class implement an Oid (Object Identifier).

An Oid is encoded as a list of bytes representing integers.

An Oid has a numeric representation where number are separated with dots :
SPNEGO Oid = 1.3.6.1.5.5.2

Translating from a byte list to a dot separated list of number follows the rules :
the first number is in [0..2] the second number is in [0..39] if the first number is 0 or 1 the first byte has a value equal to : number 1 * 40 + number two the upper bit of a byte is set if the next byte is a part of the number
For instance, the SPNEGO Oid (1.3.6.1.5.5.2) will be encoded :
 



Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.