org.jboss.remoting3.spi.ConnectionHandler Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including
all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and
Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.remoting3.spi;
import java.security.Principal;
import java.util.Collection;
import javax.net.ssl.SSLSession;
import org.jboss.remoting3.Channel;
import org.jboss.remoting3.HandleableCloseable;
import org.jboss.remoting3.security.UserInfo;
import org.xnio.Cancellable;
import org.xnio.OptionMap;
import org.xnio.Result;
/**
* A connection to a foreign endpoint. This interface is implemented by the protocol implementation.
*/
public interface ConnectionHandler extends HandleableCloseable {
/**
* Open a request handler.
*
* @param serviceType the service type string
* @param result the result for the connected channel
* @param optionMap the options for this service
* @return a handle which may be used to cancel the pending operation
*/
Cancellable open(String serviceType, Result result, OptionMap optionMap);
/**
* Get the authenticated principals for this connection.
*
* @return the authenticated principals
*/
Collection getPrincipals();
/**
* Get the authenticated UserInfo for this connection.
*
* @return the authenticated UserInfo
*/
UserInfo getUserInfo();
/**
* Get the underlying {@link SSLSession} for this connection if one is established.
*
* @return the {@link SSLSession} for the connection if one is established, otherwise returns {@code null}.
*/
SSLSession getSslSession();
/**
* Get the name of the remote endpoint.
*
* @return the remote endpoint name
*/
String getRemoteEndpointName();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy