org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator
Class AgentAuthenticator

java.lang.Object
  extended by org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator
Direct Known Subclasses:
ThriftAgentAuthenticator

public abstract class AgentAuthenticator
extends Object

Authenticates all data publishers


Constructor Summary
AgentAuthenticator(org.apache.commons.pool.impl.GenericKeyedObjectPool secureTransportPool)
           
 
Method Summary
 String connect(DataPublisherConfiguration dataPublisherConfiguration)
           
protected abstract  String connect(Object client, String userName, String password)
           
 void disconnect(DataPublisherConfiguration dataPublisherConfiguration)
           
protected abstract  void disconnect(Object client, String sessionId)
           
 org.apache.commons.pool.impl.GenericKeyedObjectPool getSecureTransportPool()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentAuthenticator

public AgentAuthenticator(org.apache.commons.pool.impl.GenericKeyedObjectPool secureTransportPool)
Method Detail

connect

public String connect(DataPublisherConfiguration dataPublisherConfiguration)
               throws org.wso2.carbon.databridge.commons.exception.AuthenticationException,
                      org.wso2.carbon.databridge.commons.exception.TransportException,
                      AgentException
Throws:
org.wso2.carbon.databridge.commons.exception.AuthenticationException
org.wso2.carbon.databridge.commons.exception.TransportException
AgentException

connect

protected abstract String connect(Object client,
                                  String userName,
                                  String password)
                           throws org.wso2.carbon.databridge.commons.exception.AuthenticationException,
                                  AgentAuthenticatorException
Throws:
org.wso2.carbon.databridge.commons.exception.AuthenticationException
AgentAuthenticatorException

disconnect

public void disconnect(DataPublisherConfiguration dataPublisherConfiguration)

getSecureTransportPool

public org.apache.commons.pool.impl.GenericKeyedObjectPool getSecureTransportPool()

disconnect

protected abstract void disconnect(Object client,
                                   String sessionId)
                            throws AgentAuthenticatorException
Throws:
AgentAuthenticatorException


Copyright © 2015 WSO2. All rights reserved.