public class TokenOptions
extends java.lang.Object
tokenOptions parameter of the
OpenTok.generateToken(String sessionId, TokenOptions tokenOptions) method
and the Session.generateToken(TokenOptions tokenOptions) method.| Modifier and Type | Class and Description |
|---|---|
static class |
TokenOptions.Builder
Use this class to create a TokenOptions object.
|
| Modifier and Type | Method and 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.
|
public Role getRole()
TokenOptions.Builder.role(Role role).public long getExpireTime()
TokenOptions.Builder.expireTime(long expireTime).public java.lang.String getData()
TokenOptions.Builder.data(String data).public java.util.List<java.lang.String> getInitialLayoutClassList()
TokenOptions.Builder.initialLayoutClassList(List initialLayoutClassList).