|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuthorizationHandler
Instances of this interface are used by the protocol provider in order to make the user act upon requests coming from contacts that would like to add us to their contact list or simply track oour presence status, or whenever a subscription request has failed for a particular contact because we need to first generate an authorization request demanding permission to subscibe.
The AuthorizationHandler is to be implmented by the User Interface as all its methods would require user intervention.
Note that some protocols do not support authorizations or allow them to be turned off. In such cases the methods from this interface will never be called.
| Method Summary | |
|---|---|
AuthorizationRequest |
createAuthorizationRequest(Contact contact)
Called by the protocol provider, this method should be implemented by the user interface. |
AuthorizationResponse |
processAuthorisationRequest(AuthorizationRequest req,
Contact sourceContact)
Called by the protocol provider whenever someone would like to add us to their contact list. |
void |
processAuthorizationResponse(AuthorizationResponse response,
Contact sourceContact)
Called by the protocol provider, this method should be implemented by the user interface. |
| Method Detail |
|---|
AuthorizationResponse processAuthorisationRequest(AuthorizationRequest req,
Contact sourceContact)
The returned AuthorizationResponse object is to be created by the implementation of this interface, and it should contain a reason phrase (especially in the case of a negative response) that will be sent to the remote user.
Note that some protocols do not support authorizations or allow them to be turned off. In such cases the method will never be called.
req - the authorization request that we should act upon.sourceContact - a reference to the Contact demanding authorization
AuthorizationRequest createAuthorizationRequest(Contact contact)
Note that some protocols do not support authorizations or allow them to be turned off. In such cases the method will never be called.
contact - the Contact whose authorization we'll be
requesting.
void processAuthorizationResponse(AuthorizationResponse response,
Contact sourceContact)
response - the AuthorizationResponse that we have received.sourceContact - a reference to the Contact demanding authorization
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||