blob: b6ec6bf5846e13f00f49ef377ccca23f56530ae1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.protocol;
/**
* Contains methods that would allow service users to re-request authorizations
* to add a contact to their contact list or, send them an authorization before
* having been asked.
*
* @author Emil Ivov
*/
public interface OperationSetExtendedAuthorizations
extends OperationSet
{
/**
* Send a positive authorization to <tt>contact</tt> thus allowing them to
* add us to their contact list without needing to first request an
* authorization.
* @param contact the <tt>Contact</tt> whom we're granting authorization
* prior to receiving a request.
* @throws OperationFailedException if we fail sending the authorization.
*/
public void explicitAuthorize(Contact contact)
throws OperationFailedException;
/**
* Send an authorization request, requesting <tt>contact</tt> to add them
* to our contact list?
*
* @param request the <tt>AuthorizationRequest</tt> that we'd like the
* protocol provider to send to <tt>contact</tt>.
* @param contact the <tt>Contact</tt> who we'd be asking for an
* authorization.
* @throws OperationFailedException if we fail sending the authorization
* request.
*/
public void reRequestAuthorization(AuthorizationRequest request,
Contact contact)
throws OperationFailedException;
}
|