Package com.opentok

Class TokenOptions

java.lang.Object
com.opentok.TokenOptions

public class TokenOptions
extends java.lang.Object
Defines values for the tokenOptions parameter of the OpenTok.generateToken(String sessionId, TokenOptions tokenOptions) method and the Session.generateToken(TokenOptions tokenOptions) method.
See Also:
OpenTok.createSession(com.opentok.SessionProperties properties)
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  TokenOptions.Builder
    Use this class to create a TokenOptions object.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getData()
    Returns the connection metadata assigned to the token.
    long getExpireTime()
    Returns the expiration time the token, as the number of seconds since the UNIX epoch.
    java.util.List<java.lang.String> getInitialLayoutClassList()
    Returns the initial layout class list for streams published by the client using this token.
    Role getRole()
    Returns the role assigned to the token.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait