public void decodeBER(BERInputStream inputStream) throws java.io.IOException { MutableByte type = new BER.MutableByte(); BER.decodeNull(inputStream, type); this.syntax = type.getValue() & 0xFF; }
public MutableByte(byte value) { setValue(value); }
public int getBERLength() { int length = BER.getOIDLength(value); return length + BER.getBERLengthOfLength(length) + 1; }
public MessageLength getMessageLength(ByteBuffer buf) throws IOException { MutableByte type = new MutableByte(); BERInputStream is = new BERInputStream(buf); int ml = BER.decodeHeader(is, type, false); int hl = (int)is.getPosition(); MessageLength messageLength = new MessageLength(hl, ml); return messageLength; } }
private static String getPositionMessage(BERInputStream is) { return " at position "+is.getPosition(); }
public int getBERLength() { return value.length + BER.getBERLengthOfLength(value.length) + 1; }
/** * Decodes a ASN.1 length. * @param is * an <code>InputStream</code> * @return * the decoded length. * @throws IOException */ public static final int decodeLength(BERInputStream is) throws IOException { return decodeLength(is, true); }
public void encodeBER(OutputStream outputStream) throws java.io.IOException { BER.encodeUnsignedInt64(outputStream, BER.COUNTER64, value); }
public void encodeBER(OutputStream outputStream) throws java.io.IOException { BER.encodeInteger(outputStream, BER.INTEGER, value); }
public MessageLength getMessageLength(ByteBuffer buf) throws IOException { MutableByte type = new MutableByte(); BERInputStream is = new BERInputStream(buf); int ml = BER.decodeHeader(is, type, false); int hl = (int) is.getPosition(); MessageLength messageLength = new MessageLength(hl, ml); return messageLength; } }
public void decodeBER(BERInputStream inputStream) throws java.io.IOException { MutableByte type = new BER.MutableByte(); BER.decodeNull(inputStream, type); this.syntax = type.getValue() & 0xFF; }
public int getBERLength() { int length = BER.getOIDLength(value); return length + BER.getBERLengthOfLength(length) + 1; }
public static String getPositionMessage(BERInputStream is) { return " at position "+is.getPosition(); }
public int getBERLength() { return value.length + BER.getBERLengthOfLength(value.length) + 1; }
public void encodeBER(OutputStream outputStream) throws java.io.IOException { BER.encodeUnsignedInt64(outputStream, BER.COUNTER64, value); }
public MessageLength getMessageLength(ByteBuffer buf) throws IOException { MutableByte type = new MutableByte(); BERInputStream is = new BERInputStream(buf); int ml = BER.decodeHeader(is, type); int hl = (int)is.getPosition(); MessageLength messageLength = new MessageLength(hl, ml); return messageLength; } }
public void decodeBER(BERInputStream inputStream) throws java.io.IOException { MutableByte type = new BER.MutableByte(); BER.decodeNull(inputStream, type); this.syntax = type.getValue() & 0xFF; }
private static String getPositionMessage(BERInputStream is) { return " at position "+is.getPosition(); }
public int getBERLength() { return value.length + BER.getBERLengthOfLength(value.length) + 1; }
public void encodeBER(OutputStream outputStream) throws java.io.IOException { BER.encodeUnsignedInt64(outputStream, BER.COUNTER64, value); }