示例#1
0
 /**
  * Sends an request to authorize the pending subscription to the specified owner.
  *
  * @param owner the JID of the user that will get the authorization request.
  */
 public void sendAuthorizationRequest(JID owner) {
   Message authRequest = new Message();
   authRequest.addExtension(node.getAuthRequestForm(this));
   authRequest.setTo(owner);
   authRequest.setFrom(service.getAddress());
   // Send authentication request to node owners
   service.send(authRequest);
 }
示例#2
0
 /**
  * Sends an request to authorize the pending subscription to all owners. The first answer sent by
  * a owner will be processed. Rest of the answers will be discarded.
  */
 public void sendAuthorizationRequest() {
   Message authRequest = new Message();
   authRequest.addExtension(node.getAuthRequestForm(this));
   // Send authentication request to node owners
   service.broadcast(node, authRequest, node.getOwners());
 }