Package org.teiid.transport
Class LogonImpl
- java.lang.Object
-
- org.teiid.transport.LogonImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>gssServiceTickets-
Fields inherited from interface org.teiid.client.security.ILogon
AUTH_TYPE, KRB5_ESTABLISHED, KRB5TOKEN
-
-
Constructor Summary
Constructors Constructor Description LogonImpl(SessionService service, String clusterName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertIdentity(SessionToken checkSession)SessionServicegetSessionService()ResultsFuture<?>logoff()Log off the specified session.LogonResultlogon(Properties connProps)protected static byte[]MD5(byte[] content)GSSResultneogitiateGssLogin(byte[] serviceTicket, String vdbName, String vdbVersion, String user)LogonResultneogitiateGssLogin(Properties connProps, byte[] serviceTicket, boolean createSession)ResultsFuture<?>ping()Ping the server to see if the client-server connection is alive.ResultsFuture<?>ping(Collection<String> sessions)
-
-
-
Constructor Detail
-
LogonImpl
public LogonImpl(SessionService service, String clusterName)
-
-
Method Detail
-
logon
public LogonResult logon(Properties connProps) throws LogonException
- Specified by:
logonin interfaceILogon- Throws:
LogonException
-
neogitiateGssLogin
public LogonResult neogitiateGssLogin(Properties connProps, byte[] serviceTicket, boolean createSession) throws LogonException
- Specified by:
neogitiateGssLoginin interfaceILogon- Throws:
LogonException
-
neogitiateGssLogin
public GSSResult neogitiateGssLogin(byte[] serviceTicket, String vdbName, String vdbVersion, String user) throws LogonException
- Throws:
LogonException
-
MD5
protected static byte[] MD5(byte[] content)
-
logoff
public ResultsFuture<?> logoff() throws InvalidSessionException
Description copied from interface:ILogonLog off the specified session.- Specified by:
logoffin interfaceILogon- Throws:
InvalidSessionException- If session has expired or doesn't exist
-
ping
public ResultsFuture<?> ping() throws InvalidSessionException, TeiidComponentException
Description copied from interface:ILogonPing the server to see if the client-server connection is alive.- Specified by:
pingin interfaceILogon- Throws:
InvalidSessionException- if the sessionID is invalidComponentNotFoundException- if can't find the Session service.TeiidComponentException
-
ping
public ResultsFuture<?> ping(Collection<String> sessions) throws TeiidComponentException, CommunicationException
- Specified by:
pingin interfaceILogon- Throws:
TeiidComponentExceptionCommunicationException
-
assertIdentity
public void assertIdentity(SessionToken checkSession) throws InvalidSessionException, TeiidComponentException
- Specified by:
assertIdentityin interfaceILogon- Throws:
InvalidSessionExceptionTeiidComponentException
-
getSessionService
public SessionService getSessionService()
-
-