public class Session
extends java.lang.Object
OpenTok.createSession(SessionProperties properties)
method to create an OpenTok session. Use the getSessionId() method of the Session object
to get the session ID.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateToken()
Generates the token for the session.
|
java.lang.String |
generateToken(TokenOptions tokenOptions)
Creates a token for connecting to an OpenTok session.
|
int |
getApiKey()
Returns the OpenTok API key used to generate the session.
|
SessionProperties |
getProperties()
Returns the properties defining the session.
|
java.lang.String |
getSessionId()
Returns the session ID, which uniquely identifies the session.
|
public int getApiKey()
public java.lang.String getSessionId()
public SessionProperties getProperties()
public java.lang.String generateToken()
throws OpenTokException
OpenTokExceptiongenerateToken(TokenOptions tokenOptions)public java.lang.String generateToken(TokenOptions tokenOptions) throws OpenTokException
tokenOptions - This TokenOptions object defines options for the token.
These include the following:
OpenTokException