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 void
assertIdentity(SessionToken checkSession)
SessionService
getSessionService()
ResultsFuture<?>
logoff()
Log off the specified session.LogonResult
logon(Properties connProps)
protected static byte[]
MD5(byte[] content)
GSSResult
neogitiateGssLogin(byte[] serviceTicket, String vdbName, String vdbVersion, String user)
LogonResult
neogitiateGssLogin(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:
logon
in interfaceILogon
- Throws:
LogonException
-
neogitiateGssLogin
public LogonResult neogitiateGssLogin(Properties connProps, byte[] serviceTicket, boolean createSession) throws LogonException
- Specified by:
neogitiateGssLogin
in 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:ILogon
Log off the specified session.- Specified by:
logoff
in interfaceILogon
- Throws:
InvalidSessionException
- If session has expired or doesn't exist
-
ping
public ResultsFuture<?> ping() throws InvalidSessionException, TeiidComponentException
Description copied from interface:ILogon
Ping the server to see if the client-server connection is alive.- Specified by:
ping
in 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:
ping
in interfaceILogon
- Throws:
TeiidComponentException
CommunicationException
-
assertIdentity
public void assertIdentity(SessionToken checkSession) throws InvalidSessionException, TeiidComponentException
- Specified by:
assertIdentity
in interfaceILogon
- Throws:
InvalidSessionException
TeiidComponentException
-
getSessionService
public SessionService getSessionService()
-
-