public class AuthorizationHandlerImpl extends java.lang.Object implements AuthorizationHandler
Constructor and Description |
---|
AuthorizationHandlerImpl(MainFrame mainFrame) |
Modifier and Type | Method and Description |
---|---|
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.
|
public AuthorizationHandlerImpl(MainFrame mainFrame)
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 AuthorizationHandler
req
- the authorization request that we should act upon.sourceContact
- a reference to the Contact demanding authorizationpublic 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 AuthorizationHandler
contact
- 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 AuthorizationHandler
response
- the AuthorizationResponse that we have received.sourceContact
- a reference to the Contact demanding authorization
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.