Search in sources :

Example 1 with SocketConnectionMetaData

use of org.apache.qpid.server.security.auth.SocketConnectionMetaData in project qpid-broker-j by apache.

the class HttpManagementActorTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    _connectionPrincipal = new ManagementConnectionPrincipal() {

        @Override
        public String getType() {
            return "HTTP";
        }

        @Override
        public String getSessionId() {
            return SESSION_ID;
        }

        @Override
        public SocketAddress getRemoteAddress() {
            return new InetSocketAddress(IP, PORT);
        }

        @Override
        public SocketConnectionMetaData getConnectionMetaData() {
            return null;
        }

        @Override
        public String getName() {
            return getRemoteAddress().toString();
        }
    };
}
Also used : SocketConnectionMetaData(org.apache.qpid.server.security.auth.SocketConnectionMetaData) InetSocketAddress(java.net.InetSocketAddress) SocketAddress(java.net.SocketAddress) InetSocketAddress(java.net.InetSocketAddress) ManagementConnectionPrincipal(org.apache.qpid.server.security.auth.ManagementConnectionPrincipal)

Aggregations

InetSocketAddress (java.net.InetSocketAddress)1 SocketAddress (java.net.SocketAddress)1 ManagementConnectionPrincipal (org.apache.qpid.server.security.auth.ManagementConnectionPrincipal)1 SocketConnectionMetaData (org.apache.qpid.server.security.auth.SocketConnectionMetaData)1