public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException {
   xdr.xdrEncodeString(type);
   xdr.xdrEncodeString(name);
   xdr.xdrEncodeString(units);
   xdr.xdrEncodeInt(slope);
   xdr.xdrEncodeInt(tmax);
   xdr.xdrEncodeInt(dmax);
   {
     int $size = metadata.length;
     xdr.xdrEncodeInt($size);
     for (int $idx = 0; $idx < $size; ++$idx) {
       metadata[$idx].xdrEncode(xdr);
     }
   }
 }
Beispiel #2
0
 public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException {
   xdr.xdrEncodeString(application);
   xdr.xdrEncodeString(client_library);
   key.xdrEncode(xdr);
   value_hash.xdrEncode(xdr);
   xdr.xdrEncodeInt(ttl_sec);
 }
 /**
  * Encodes -- that is: serializes -- an ONC/RPC authentication object (its verifier) on the server
  * side.
  *
  * @param xdr An XDR encoding stream
  * @throws OncRpcException if an ONC/RPC error occurs.
  * @throws IOException if an I/O error occurs.
  */
 public final void xdrEncodeVerf(XdrEncodingStream xdr) throws OncRpcException, IOException {
   if (shorthandVerf != null) {
     //
     // Encode AUTH_SHORT shorthand verifier (credential).
     //
     xdr.xdrEncodeInt(OncRpcAuthType.ONCRPC_AUTH_SHORT);
     xdr.xdrEncodeDynamicOpaque(shorthandVerf);
   } else {
     //
     // Encode an AUTH_NONE verifier with zero length, if no shorthand
     // verifier (credential) has been supplied by now.
     //
     xdr.xdrEncodeInt(OncRpcAuthType.ONCRPC_AUTH_NONE);
     xdr.xdrEncodeInt(0);
   }
 }
Beispiel #4
0
 public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException {
   xdr.xdrEncodeInt(status);
 }
Beispiel #5
0
 private void xdrEncodeTime(XdrEncodingStream xdrEncodingStream, Time time)
     throws OncRpcException, IOException {
   xdrEncodingStream.xdrEncodeInt(time.getSeconds());
   xdrEncodingStream.xdrEncodeInt(time.getMicroSeconds());
 }