|
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 | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.authorization.AuthorizationHandlerImpl
public class AuthorizationHandlerImpl
The AuthorizationHandlerImpl is an implementation of the AuthorizationHandler interface, which is 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 our 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.
| Constructor Summary | |
|---|---|
AuthorizationHandlerImpl(MainFrame mainFrame)
|
|
| Method Summary | |
|---|---|
AuthorizationRequest |
createAuthorizationRequest(Contact contact)
Implements the AuthorizationHandler.createAuthorizationRequest method. |
AuthorizationResponse |
processAuthorisationRequest(AuthorizationRequest req,
Contact sourceContact)
Implements the AuthorizationHandler.processAuthorisationRequest method. |
void |
processAuthorizationResponse(AuthorizationResponse response,
Contact sourceContact)
Implements the AuthorizationHandler.processAuthorizationResponse method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationHandlerImpl(MainFrame mainFrame)
| Method Detail |
|---|
public AuthorizationResponse processAuthorisationRequest(AuthorizationRequest req,
Contact sourceContact)
Called by the protocol provider whenever someone would like to add us to their contact list.
processAuthorisationRequest in interface AuthorizationHandlerreq - the authorization request that we should act upon.sourceContact - a reference to the Contact demanding authorization
public AuthorizationRequest createAuthorizationRequest(Contact contact)
The method is called when the user has tried to add a contact to the contact list and this contact requires authorization.
createAuthorizationRequest in interface AuthorizationHandlercontact - the Contact whose authorization we'll be
requesting.
public void processAuthorizationResponse(AuthorizationResponse response,
Contact sourceContact)
The method will be called any whenever someone acts upone an authorization request that we have previously sent.
processAuthorizationResponse in interface AuthorizationHandlerresponse - 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 | |||||||||