@Override public LogonResult logon( Properties connectionProperties) throws LogonException, TeiidComponentException { return new LogonResult(new SessionToken(1, connectionProperties.getProperty(TeiidURL.CONNECTION.USER_NAME, "fooUser")), "foo", "fake"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
LogonResult result = new LogonResult(sessionInfo.getSessionToken(), sessionInfo.getVDBName(), clusterName); if (krb5ServiceTicket != null) { result.addProperty(ILogon.KRB5TOKEN, krb5ServiceTicket);
LogonResult logonResult = new LogonResult(new SessionToken(0, "temp"), "internal", "internal"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ logonResult.addProperty(ILogon.KRB5TOKEN, result.getServiceToken()); logonResult.addProperty(ILogon.KRB5_ESTABLISHED, new Boolean(result.isAuthenticated()));
derived = true; workContext = context; this.result = new LogonResult(context.getSessionToken(), context.getVdbName(), null); passthrough = true;
LogonResult result = new LogonResult(); result.addProperty(ILogon.AUTH_TYPE, authType); return result;
private CallableStatementImpl getCallableStatement() throws SQLException { ConnectionImpl conn = Mockito.mock(ConnectionImpl.class); ServerConnection sc = Mockito.mock(ServerConnection.class); Mockito.stub(sc.getLogonResult()).toReturn(new LogonResult()); Mockito.stub(conn.getServerConnection()).toReturn(sc); CallableStatementImpl mmcs = new CallableStatementImpl(conn, "{?=call x(?)}", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); return mmcs; }
stub(mock.getLogonResult()).toReturn(new LogonResult(new SessionToken(1, "admin"), STD_DATABASE_NAME, "fake")); //$NON-NLS-1$ return new ConnectionImpl(mock, props, url);