Home | History | Annotate | Download | only in x501

Lines Matching defs:oid

172             //don't add DNQUALIFIER because it has the same oid as DNQ
183 * Parses OID string representation.
186 * string representation of OID
189 * if OID can not be created from its string representation
209 private final ObjectIdentifier oid;
215 private AttributeTypeAndValue(int[] oid, AttributeValue value) throws IOException {
216 ObjectIdentifier thisOid = getOID(oid);
218 thisOid = new ObjectIdentifier(oid);
220 this.oid = thisOid;
225 * Creates AttributeTypeAndValue with OID and AttributeValue.
227 * @param oid
232 public AttributeTypeAndValue(ObjectIdentifier oid, AttributeValue value) throws IOException {
233 this.oid = oid;
245 if (RFC1779_NAMES == oid.getGroup()) {
246 sb.append(oid.getName());
248 sb.append(oid.toOIDString());
261 Object group = oid.getGroup();
264 sb.append(oid.getName());
279 sb.append(oid.toString());
303 return oid;
418 values[0] = atav.oid.getOid();
424 * Returns known OID or null.
426 private static ObjectIdentifier getOID(int[] oid) {
427 int index = hashIntArray(oid) % CAPACITY;
429 // look for OID in the pool
432 if (Arrays.equals(oid, list[i].getOid())) {
440 * Adds known OID to pool.
443 private static void addOID(ObjectIdentifier oid) {
444 int[] newOid = oid.getOid();
447 // look for OID in the pool
454 "duplicate OIDs: " + oid.getName() + " " + list[i].getName());
461 "small OID pool capacity");
463 list[i] = oid;
469 private static int hashIntArray(int[] oid) {
471 for (int i = 0; i < oid.length && i < 4; i++) {
472 intHash += oid[i] << (8 * i); //TODO what about to find better one?