/** * Get the sessionID. * @return * @since 4.3 */ public String getSessionID() { return this.sessionToken.getSessionID(); }
/** * Returns a string representing the current state of the object. */ public String toString() { return "SessionToken[" + getUsername() + "," + this.sessionID + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
@Secure LogonResult logon(Properties connectionProperties) throws LogonException, TeiidComponentException, CommunicationException;
@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$ }
/** * Connection identifier of this connection * @return identifier * @throws SQLException */ public String getConnectionId() { return this.serverConn.getLogonResult().getSessionID(); }
/** * Get's the name of the user who got this connection. * @return Sring object giving the user name * @throws SQLException if the connection is closed */ String getUserName() throws SQLException { checkConnection(); return this.serverConn.getLogonResult().getUserName(); }
public InvalidSessionException(BundleUtil.Event event) { super(); setCode(event.toString()); } }
/** * Get the sessionID. * @return * @since 4.3 */ public String getSessionID() { return this.sessionToken.getSessionID(); }
/** * Connection identifier of this connection * @return identifier * @throws SQLException */ public String getConnectionId() { return this.serverConn.getLogonResult().getSessionID(); }
@Secure void assertIdentity(SessionToken sessionId) throws InvalidSessionException, TeiidComponentException, CommunicationException; }
/** * Returns a string representing the current state of the object. */ public String toString() { return "SessionToken[" + getUsername() + "," + this.sessionID + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
public InvalidSessionException(BundleUtil.Event event) { super(); setCode(event.toString()); } }
@Secure void assertIdentity(SessionToken sessionId) throws InvalidSessionException, TeiidComponentException, CommunicationException; }
public String getUserName() { return this.sessionToken.getUsername(); }
@Secure LogonResult logon(Properties connectionProperties) throws LogonException, TeiidComponentException, CommunicationException;
public String getUserName() { return this.sessionToken.getUsername(); }
@Secure LogonResult neogitiateGssLogin(Properties connectionProperties, byte[] serviceToken, boolean createSession) throws LogonException;
@Secure(optional=true) ResultsFuture<ResultsMessage> executeRequest(long reqID, RequestMessage message) throws TeiidProcessingException, TeiidComponentException;
@Secure(optional=true) ResultsFuture<ResultsMessage> executeRequest(long reqID, RequestMessage message) throws TeiidProcessingException, TeiidComponentException;
@Secure LogonResult neogitiateGssLogin(Properties connectionProperties, byte[] serviceToken, boolean createSession) throws LogonException;