@Override public String readUTF() throws IOException { return mH2i.readString(); }
@Override public String readUTF() throws IOException { return mH2i.readString(); }
/** * Starts reading the call * <p> * <p>A successful completion will have a single value: * <p> * <pre> * string * </pre> */ @Override public String readMethod() throws IOException { _method = readString(); return _method; }
/** * Reads an object definition: * <p> * <pre> * O string <int> (string)* <value>* * </pre> */ private void readObjectDefinition(Class cl) throws IOException { String type = readString(); int len = readInt(); String[] fieldNames = new String[len]; for (int i = 0; i < len; i++) fieldNames[i] = readString(); ObjectDefinition def = new ObjectDefinition(type, fieldNames); if (_classDefs == null) _classDefs = new ArrayList(); _classDefs.add(def); }
/** * Reads a remote object. */ @Override public Object readRemote() throws IOException { String type = readType(); String url = readString(); return resolveRemote(type, url); }
String header = in.readString(); keyAlgorithm = in.readString(); else if ("algorithm".equals(header)) algorithm = in.readString(); else if ("key".equals(header)) encKey = in.readBytes();
String header = in.readString(); keyAlgorithm = in.readString(); else if ("algorithm".equals(header)) algorithm = in.readString(); else if ("key".equals(header)) encKey = in.readBytes();
case BC_STRING_CHUNK: case 'S': { String type = readString();
@Override public void close() throws IOException { Hessian2Input in = _in; _in = null; if (in != null) { _bodyIn.close(); int len = in.readInt(); byte[] signature = null; for (int i = 0; i < len; i++) { String header = in.readString(); if ("signature".equals(header)) signature = in.readBytes(); } in.completeEnvelope(); in.close(); if (signature == null) throw new IOException("Expected signature"); byte[] sig = _mac.doFinal(); if (sig.length != signature.length) throw new IOException("mismatched signature"); for (int i = 0; i < sig.length; i++) { if (signature[i] != sig[i]) throw new IOException("mismatched signature"); } // XXX: save principal } } }
@Override public String readUTF() throws IOException { return mH2i.readString(); }
public String readUTF() throws IOException { return mH2i.readString(); }
@Override public String readUTF() throws IOException { return mH2i.readString(); }
@Override public String readUTF() throws IOException { return mH2i.readString(); }
public String readUTF() throws IOException { return mH2i.readString(); }
@Override public String readUTF() throws IOException { return mH2i.readString(); }
/** * Reads a remote object. */ public Object readRemote() throws IOException { String type = readType(); String url = readString(); return resolveRemote(type, url); }
/** * Reads a remote object. */ @Override public Object readRemote() throws IOException { String type = readType(); String url = readString(); return resolveRemote(type, url); }
/** * Reads a remote object. */ @Override public Object readRemote() throws IOException { String type = readType(); String url = readString(); return resolveRemote(type, url); }
/** * Reads a remote object. */ public Object readRemote() throws IOException { String type = readType(); String url = readString(); return resolveRemote(type, url); }
/** * Reads a remote object. */ public Object readRemote() throws IOException { String type = readType(); String url = readString(); return resolveRemote(type, url); }