Package org.exolab.jms.net.connector

Examples of org.exolab.jms.net.connector.SecurityException


     */
    protected VMInvoker accept(Principal principal, URIRequestInfo info,
                               VMInvoker client, URI uri)
            throws ResourceException {
        if (!_authenticator.authenticate(principal)) {
            throw new SecurityException("Failed to authenticate: " + principal);
        }
        VMManagedConnection connection =
                new VMManagedConnection(principal, info, client, uri);
        VMInvoker invoker = new VMInvoker(connection);
        ManagedConnectionAcceptorListener listener;
View Full Code Here


            } else {
                _out.writeByte(AUTH_NONE);
            }
            _out.flush();
            if (_in.readByte() != AUTH_OK) {
                throw new SecurityException("Connection refused");
            }
        } catch (IOException exception) {
            // terminate the connection
            _endpoint.close();
            throw exception;
View Full Code Here

                _out.writeByte(AUTH_OK);
                _out.flush();
            } else {
                _out.writeByte(AUTH_DENIED);
                _out.flush();
                throw new SecurityException("User " + principal
                        + " unauthorised");
            }
            _principal = principal;
        } catch (IOException exception) {
            // terminate the connection
View Full Code Here

        }
        try {
            _remoteInvoker = factory.createInvoker(principal, _localInvoker,
                                                   _localURI.toString());
        } catch (AccessException exception) {
            throw new SecurityException(exception.getMessage(), exception);
        } catch (RemoteException exception) {
            if (exception.detail instanceof AccessException) {
                throw new SecurityException(exception.getMessage(),
                                            exception.detail);
            }
            throw new ResourceException("Failed to create invocation handler",
                                        exception);
        }
View Full Code Here

TOP

Related Classes of org.exolab.jms.net.connector.SecurityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.