/** * Constructs an {@code OID} from an array of integer values. * * @param rawOID an array of {@code int} values. The array * is copied. Later changes to {@code rawOID} will therefore not * affect the OID's value. * @param offset the zero based offset into the {@code rawOID} that points to the * first sub-identifier of the new OID. * @param length the length of the new OID, where {@code offset + length} must be * less or equal the length of {@code rawOID}. Otherwise an * {@code IndexOutOfBoundsException} is thrown. */ public OID(int[] rawOID, int offset, int length) { setValue(rawOID, offset, length); }
/** * Constructs an {@code OID} from an array of integer values. * @param rawOID * an array of {@code int} values. The array * is copied. Later changes to {@code rawOID} will therefore not * affect the OID's value. * @param offset * the zero based offset into the {@code rawOID} that points to the * first sub-identifier of the new OID. * @param length * the length of the new OID, where {@code offset + length} must be * less or equal the length of {@code rawOID}. Otherwise an * {@code IndexOutOfBoundsException} is thrown. */ public OID(int[] rawOID, int offset, int length) { setValue(rawOID, offset, length); }
/** * Constructs an <code>OID</code> from an array of integer values. * @param rawOID * an array of <code>int</code> values. The array * is copied. Later changes to <code>rawOID</code> will therefore not * affect the OID's value. * @param offset * the zero based offset into the <code>rawOID</code> that points to the * first sub-identifier of the new OID. * @param length * the length of the new OID, where <code>offset + length</code> must be * less or equal the length of <code>rawOID</code>. Otherwise an * <code>IndexOutOfBoundsException</code> is thrown. */ public OID(int[] rawOID, int offset, int length) { setValue(rawOID, offset, length); }
public void setSysOID(OID sysOID) { this.sysOID.setValue(sysOID.getValue()); }
public void setSysOID(OID sysOID) { this.sysOID.setValue(sysOID.getValue()); }
public final void fromSubIndex(OID subIndex, boolean impliedLength) { int offset = 1; if (impliedLength) { offset = 0; } setValue(subIndex.getValue(), offset, subIndex.size()-offset); }
public final void fromSubIndex(OID subIndex, boolean impliedLength) { int offset = 1; if (impliedLength) { offset = 0; } setValue(subIndex.getValue(), offset, subIndex.size() - offset); }
public final void fromSubIndex(OID subIndex, boolean impliedLength) { int offset = 1; if (impliedLength) { offset = 0; } setValue(subIndex.getValue(), offset, subIndex.size()-offset); }
public void decodeBER(BERInputStream inputStream) throws java.io.IOException { BER.MutableByte type = new BER.MutableByte(); int[] v = BER.decodeOID(inputStream, type); if (type.getValue() != BER.OID) { throw new IOException("Wrong type encountered when decoding OID: "+ type.getValue()); } setValue(v); }
public void decodeBER(BERInputStream inputStream) throws java.io.IOException { BER.MutableByte type = new BER.MutableByte(); int[] v = BER.decodeOID(inputStream, type); if (type.getValue() != BER.OID) { throw new IOException("Wrong type encountered when decoding OID: " + type.getValue()); } setValue(v); }
public void decodeBER(BERInputStream inputStream) throws java.io.IOException { BER.MutableByte type = new BER.MutableByte(); int[] v = BER.decodeOID(inputStream, type); if (type.getValue() != BER.OID) { throw new IOException("Wrong type encountered when decoding OID: "+ type.getValue()); } setValue(v); }