mirror of https://github.com/sipwise/jitsi.git
Added AuthHandler for account subscription in MSN tests.cusax-fix
parent
7d4211fe15
commit
4a9c6c769d
@ -0,0 +1,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.slick.protocol.generic;
|
||||
|
||||
import net.java.sip.communicator.service.protocol.*;
|
||||
import net.java.sip.communicator.util.*;
|
||||
|
||||
/**
|
||||
* Implementation for the authorization handler.
|
||||
*/
|
||||
public class AuthHandler
|
||||
implements AuthorizationHandler
|
||||
{
|
||||
|
||||
private static final Logger logger =
|
||||
Logger.getLogger(AuthHandler.class);
|
||||
|
||||
public AuthorizationResponse processAuthorisationRequest(
|
||||
AuthorizationRequest req, Contact sourceContact)
|
||||
{
|
||||
logger.trace("processAuthorisationRequest " + req + " " +
|
||||
sourceContact);
|
||||
|
||||
return new AuthorizationResponse(AuthorizationResponse.ACCEPT, "");
|
||||
}
|
||||
|
||||
public AuthorizationRequest createAuthorizationRequest(Contact contact)
|
||||
{
|
||||
logger.trace("createAuthorizationRequest " + contact);
|
||||
return new AuthorizationRequest();
|
||||
}
|
||||
|
||||
public void processAuthorizationResponse(
|
||||
AuthorizationResponse response, Contact sourceContact)
|
||||
{
|
||||
logger.debug("auth response from: " +
|
||||
sourceContact.getAddress() + " " +
|
||||
response.getResponseCode().getCode());
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue