inToken = (byte[])result.getProperty(ILogon.KRB5TOKEN);
inToken = (byte[])result.getProperty(ILogon.KRB5TOKEN);
private void logon(ILogon newLogon) throws LogonException, TeiidComponentException, CommunicationException { SocketServerInstance instance = this.serverInstance; updateConnectionProperties(connProps, instance.getLocalAddress(), true); LogonResult newResult = null; // - if gss if (connProps.contains(TeiidURL.CONNECTION.JAAS_NAME)) { newResult = MakeGSS.authenticate(newLogon, connProps); } else { newResult = newLogon.logon(connProps); } AuthenticationType type = (AuthenticationType) newResult.getProperty(ILogon.AUTH_TYPE); if (type != null) { //server has issued an additional challenge if (type == AuthenticationType.GSS) { newResult = MakeGSS.authenticate(newLogon, connProps); } else { throw new LogonException(JDBCPlugin.Event.TEIID20034, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20034, type)); } } logoff(); this.logonResult = newResult; }
private void logon(ILogon newLogon) throws LogonException, TeiidComponentException, CommunicationException { SocketServerInstance instance = this.serverInstance; updateConnectionProperties(connProps, instance.getLocalAddress(), true, this.connectionFactory); LogonResult newResult = null; // - if gss if (connProps.contains(TeiidURL.CONNECTION.JAAS_NAME)) { newResult = MakeGSS.authenticate(newLogon, connProps); } else { newResult = newLogon.logon(connProps); } AuthenticationType type = (AuthenticationType) newResult.getProperty(ILogon.AUTH_TYPE); if (type != null) { //server has issued an additional challenge if (type == AuthenticationType.GSS) { newResult = MakeGSS.authenticate(newLogon, connProps); } else { throw new LogonException(JDBCPlugin.Event.TEIID20034, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20034, type)); } } logoff(); this.logonResult = newResult; }
this.result = this.getService(ILogon.class).logon(this.connectionProperties); AuthenticationType type = (AuthenticationType) this.result.getProperty(ILogon.AUTH_TYPE);